github.com/cranelv/ethereum_mpc@v0.0.0-20191031014521-23aeb1415092/mpcService/protocol/error.go (about) 1 package protocol 2 3 import "errors" 4 5 var ( 6 ErrQuit = errors.New("Quit") 7 ErrMpcRequest = errors.New("Mpc Request is not exist") 8 ErrMpcResultExist = errors.New("Mpc Result is not exist") 9 ErrContextType = errors.New("Err Context Type is error") 10 ErrTimeOut = errors.New("Mpc Requst is TimeOut") 11 ErrAddress = errors.New("Mpc Address is not found") 12 ErrChainID = errors.New("Mpc ChainID is not Defined") 13 ErrPointZero = errors.New("Mpc Point is zero") 14 ErrChainTypeError = errors.New("Mpc transaction chaintype error") 15 ErrMpcSeedOutRange = errors.New("Mpc seeds are out range") 16 ErrMpcSeedDuplicate = errors.New("Mpc seeds have duplicate") 17 ErrDecrypt = errors.New("could not decrypt key with given passphrase") 18 ErrTooLessStoreman = errors.New("Mpc alived Storeman is not enough") 19 ErrTooMoreStoreman = errors.New("Mpc alived Storeman is too more") 20 ErrFailedTxVerify = errors.New("Mpc signing transaction verify failed") 21 ErrMpcContextExist = errors.New("Mpc Context ID is already exist") 22 ErrInvalidMPCAddr = errors.New("Invalid mpc account address") 23 ErrFailSignRetVerify = errors.New("Mpc signing result verify failed") 24 ErrInvalidStmAccType = errors.New("invalid storeman account type! please input 'WAN' or 'ETH' or 'BTC' ") 25 ErrMpcFinish = errors.New("Mpc Context has been Finished") 26 )