Documentation ¶
Index ¶
- func CreateRequestMpcStep(result protocol.MpcResultInterface, nodeinfo protocol.MpcNodeInterface, ...) protocol.MpcStepFunc
- type AckMpcAccountStep
- type AcknowledgeMpcStep
- type BaseMpcStep
- type BaseStep
- func (step *BaseStep) FinishStep() error
- func (step *BaseStep) GetMessageChan() chan *protocol.StepMessage
- func (step *BaseStep) HandleMessage(msger protocol.GetMessageInterface) bool
- func (step *BaseStep) InitMessageLoop(msger protocol.GetMessageInterface) error
- func (step *BaseStep) Quit(err error)
- type GetMpcReadyStep
- type MpcAddressStep
- type MpcJRSS_Step
- type MpcMessageGenerator
- type MpcPoint_Step
- type MpcReadyStep
- type RequestMpcAccountStep
- type RequestMpcSignStep
- type TXSignJR_JZ_Step
- type TXSign_Lagrange_Step
- type TxSign_CalSignStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRequestMpcStep ¶
func CreateRequestMpcStep(result protocol.MpcResultInterface, nodeinfo protocol.MpcNodeInterface, messageType uint32) protocol.MpcStepFunc
Types ¶
type AckMpcAccountStep ¶
type AckMpcAccountStep struct { BaseStep // contains filtered or unexported fields }
func CreateAckMpcAccountStep ¶
func CreateAckMpcAccountStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface) *AckMpcAccountStep
func (*AckMpcAccountStep) CreateMessage ¶
func (ack *AckMpcAccountStep) CreateMessage() []protocol.StepMessage
func (*AckMpcAccountStep) FinishStep ¶
func (ack *AckMpcAccountStep) FinishStep(mpc protocol.MpcManager) error
func (*AckMpcAccountStep) HandleMessage ¶
func (ack *AckMpcAccountStep) HandleMessage(msg *protocol.StepMessage) bool
func (*AckMpcAccountStep) InitStep ¶
func (ack *AckMpcAccountStep) InitStep() error
type AcknowledgeMpcStep ¶
type AcknowledgeMpcStep struct { BaseStep // contains filtered or unexported fields }
func CreateAcknowledgeMpcStep ¶
func CreateAcknowledgeMpcStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface, messageType uint32) *AcknowledgeMpcStep
func (*AcknowledgeMpcStep) CreateMessage ¶
func (ack *AcknowledgeMpcStep) CreateMessage() []protocol.StepMessage
func (*AcknowledgeMpcStep) FinishStep ¶
func (ack *AcknowledgeMpcStep) FinishStep(mpc protocol.MpcManager) error
func (*AcknowledgeMpcStep) HandleMessage ¶
func (ack *AcknowledgeMpcStep) HandleMessage(msg *protocol.StepMessage) bool
func (*AcknowledgeMpcStep) InitStep ¶
func (ack *AcknowledgeMpcStep) InitStep() error
type BaseMpcStep ¶
type BaseMpcStep struct { BaseStep // contains filtered or unexported fields }
func CreateBaseMpcStep ¶
func CreateBaseMpcStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface, messageNum int, bFilter bool) *BaseMpcStep
func (*BaseMpcStep) FinishStep ¶
func (mpcStep *BaseMpcStep) FinishStep() error
func (*BaseMpcStep) InitStep ¶
func (mpcStep *BaseMpcStep) InitStep() error
type BaseStep ¶
type BaseStep struct {
// contains filtered or unexported fields
}
func CreateBaseStep ¶
func CreateBaseStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface, wait int, bFilter bool) *BaseStep
func (*BaseStep) FinishStep ¶
func (*BaseStep) GetMessageChan ¶
func (step *BaseStep) GetMessageChan() chan *protocol.StepMessage
func (*BaseStep) HandleMessage ¶
func (step *BaseStep) HandleMessage(msger protocol.GetMessageInterface) bool
func (*BaseStep) InitMessageLoop ¶
func (step *BaseStep) InitMessageLoop(msger protocol.GetMessageInterface) error
type GetMpcReadyStep ¶
type GetMpcReadyStep struct {
BaseStep
}
func CreateGetMpcReadyStep ¶
func CreateGetMpcReadyStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface) *GetMpcReadyStep
func (*GetMpcReadyStep) CreateMessage ¶
func (ready *GetMpcReadyStep) CreateMessage() []protocol.StepMessage
func (*GetMpcReadyStep) FinishStep ¶
func (ready *GetMpcReadyStep) FinishStep(mpc protocol.MpcManager) error
func (*GetMpcReadyStep) HandleMessage ¶
func (ready *GetMpcReadyStep) HandleMessage(msg *protocol.StepMessage) bool
func (*GetMpcReadyStep) InitStep ¶
func (ready *GetMpcReadyStep) InitStep() error
type MpcAddressStep ¶
type MpcAddressStep struct {
MpcPoint_Step
}
func CreateMpcAddressStep ¶
func CreateMpcAddressStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface) *MpcAddressStep
func (*MpcAddressStep) FinishStep ¶
func (addStep *MpcAddressStep) FinishStep(mpc protocol.MpcManager) error
type MpcJRSS_Step ¶
type MpcJRSS_Step struct {
BaseMpcStep
}
func CreateMpcJRSS_Step ¶
func CreateMpcJRSS_Step(result protocol.MpcResultInterface, degree int, nodeInfo protocol.MpcNodeInterface) *MpcJRSS_Step
func (*MpcJRSS_Step) CreateMessage ¶
func (jrss *MpcJRSS_Step) CreateMessage() []protocol.StepMessage
func (*MpcJRSS_Step) FinishStep ¶
func (jrss *MpcJRSS_Step) FinishStep(mpc protocol.MpcManager) error
func (*MpcJRSS_Step) HandleMessage ¶
func (jrss *MpcJRSS_Step) HandleMessage(msg *protocol.StepMessage) bool
type MpcMessageGenerator ¶
type MpcPoint_Step ¶
type MpcPoint_Step struct { BaseMpcStep // contains filtered or unexported fields }
func CreateMpcPoint_Step ¶
func CreateMpcPoint_Step(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface, preValueKeys []string, resultKeys []string) *MpcPoint_Step
func (*MpcPoint_Step) CreateMessage ¶
func (ptStep *MpcPoint_Step) CreateMessage() []protocol.StepMessage
func (*MpcPoint_Step) FinishStep ¶
func (ptStep *MpcPoint_Step) FinishStep(mpc protocol.MpcManager) error
func (*MpcPoint_Step) HandleMessage ¶
func (ptStep *MpcPoint_Step) HandleMessage(msg *protocol.StepMessage) bool
type MpcReadyStep ¶
type MpcReadyStep struct {
BaseStep
}
func CreateMpcReadyStep ¶
func CreateMpcReadyStep(result protocol.MpcResultInterface, nodeInfo protocol.MpcNodeInterface) *MpcReadyStep
func (*MpcReadyStep) CreateMessage ¶
func (ready *MpcReadyStep) CreateMessage() []protocol.StepMessage
func (*MpcReadyStep) FinishStep ¶
func (ready *MpcReadyStep) FinishStep(mpc protocol.MpcManager) error
func (*MpcReadyStep) HandleMessage ¶
func (ready *MpcReadyStep) HandleMessage(msg *protocol.StepMessage) bool
func (*MpcReadyStep) InitStep ¶
func (ready *MpcReadyStep) InitStep() error
type RequestMpcAccountStep ¶
type RequestMpcAccountStep struct { BaseStep // contains filtered or unexported fields }
func (*RequestMpcAccountStep) CreateMessage ¶
func (req *RequestMpcAccountStep) CreateMessage() []protocol.StepMessage
func (*RequestMpcAccountStep) FinishStep ¶
func (req *RequestMpcAccountStep) FinishStep(mpc protocol.MpcManager) error
func (*RequestMpcAccountStep) HandleMessage ¶
func (req *RequestMpcAccountStep) HandleMessage(msg *protocol.StepMessage) bool
func (*RequestMpcAccountStep) InitStep ¶
func (req *RequestMpcAccountStep) InitStep() error
type RequestMpcSignStep ¶
type RequestMpcSignStep struct { BaseStep // contains filtered or unexported fields }
func (*RequestMpcSignStep) CreateMessage ¶
func (req *RequestMpcSignStep) CreateMessage() []protocol.StepMessage
func (*RequestMpcSignStep) FinishStep ¶
func (req *RequestMpcSignStep) FinishStep(mpc protocol.MpcManager) error
func (*RequestMpcSignStep) HandleMessage ¶
func (req *RequestMpcSignStep) HandleMessage(msg *protocol.StepMessage) bool
func (*RequestMpcSignStep) InitStep ¶
func (req *RequestMpcSignStep) InitStep() error
type TXSignJR_JZ_Step ¶
type TXSignJR_JZ_Step struct {
BaseMpcStep
}
func CreateTXSignJR_JZ_Step ¶
func CreateTXSignJR_JZ_Step(result protocol.MpcResultInterface, degree int, nodeInfo protocol.MpcNodeInterface) *TXSignJR_JZ_Step
func (*TXSignJR_JZ_Step) CreateMessage ¶
func (jrjz *TXSignJR_JZ_Step) CreateMessage() []protocol.StepMessage
func (*TXSignJR_JZ_Step) FinishStep ¶
func (jrjz *TXSignJR_JZ_Step) FinishStep(mpc protocol.MpcManager) error
func (*TXSignJR_JZ_Step) HandleMessage ¶
func (jrjz *TXSignJR_JZ_Step) HandleMessage(msg *protocol.StepMessage) bool
type TXSign_Lagrange_Step ¶
type TXSign_Lagrange_Step struct {
BaseMpcStep
}
func CreateTXSign_Lagrange_Step ¶
func CreateTXSign_Lagrange_Step(result protocol.MpcResultInterface, nodeinfo protocol.MpcNodeInterface, preValueKeys []string, resultKeys []string) *TXSign_Lagrange_Step
func (*TXSign_Lagrange_Step) CreateMessage ¶
func (lagStep *TXSign_Lagrange_Step) CreateMessage() []protocol.StepMessage
func (*TXSign_Lagrange_Step) FinishStep ¶
func (lagStep *TXSign_Lagrange_Step) FinishStep(mpc protocol.MpcManager) error
func (*TXSign_Lagrange_Step) HandleMessage ¶
func (lagStep *TXSign_Lagrange_Step) HandleMessage(msg *protocol.StepMessage) bool
type TxSign_CalSignStep ¶
type TxSign_CalSignStep struct {
TXSign_Lagrange_Step
}
func CreateTxSign_CalSignStep ¶
func CreateTxSign_CalSignStep(result protocol.MpcResultInterface, nodeinfo protocol.MpcNodeInterface, resultKey string) *TxSign_CalSignStep
func (*TxSign_CalSignStep) FinishStep ¶
func (txStep *TxSign_CalSignStep) FinishStep(mpc protocol.MpcManager) error
func (*TxSign_CalSignStep) InitStep ¶
func (txStep *TxSign_CalSignStep) InitStep() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.