github.com/cranelv/ethereum_mpc@v0.0.0-20191031014521-23aeb1415092/mpcService/protocol/mpcManager.go (about)

     1  package protocol
     2  
     3  import (
     4  	"github.com/ethereum/go-ethereum/p2p/discover"
     5  )
     6  
     7  type MpcManager interface {
     8  	P2pMessage(*discover.NodeID, uint64, interface{}) error
     9  	BoardcastMessage([]*discover.NodeID, uint64, interface{}) error
    10  	SelfNodeId() *discover.NodeID
    11  	CreateKeystore(MpcResultInterface,MpcNodeInterface) error
    12  	SignTransaction(MpcResultInterface) error
    13  }