Versions in this module Expand all Collapse all v0 v0.1.3 Jan 16, 2024 v0.1.2 Dec 7, 2023 v0.1.1 Nov 3, 2023 v0.1.0 Oct 17, 2023 Changes in this version + const ConfigPath + const EngineStateRunning + const EngineStateStopped + const LogFile + const RequestPath + const VERSION + var IS_DEBUG = true + func BackgroundLoop() string + func BlsPublicKey(privKey string) (interface{}, error) + func BlsSign(privKey, msg string) (interface{}, error) + func BlsTest() string + func Emit(jsonText string) string + func GetAppPath() string + func GetJson() string + func GetNetInfos() string + func GetTime() int64 + func GetWebSocketConnect() string + func ReadTouchedFile() string + func RunLoop() string + func Test() string + func TouchFile() string + type AccountReward struct + Account string + Number *uint256.Int + Value *uint256.Int + type AccountRewards []*AccountReward + func (r AccountRewards) Len() int + func (r AccountRewards) Less(i, j int) bool + func (r AccountRewards) Swap(i, j int) + type AggSign struct + Address commTyp.Address + Number uint64 + PublicKey commTyp.PublicKey + Sign commTyp.Signature + StateRoot commTyp.Hash + type EmitRequest struct + Typ string + Val interface{} + type EmitResponse struct + Code int + Data interface{} + Message string + type EvmEngine struct + Account string + AppBasePath string + BlockChan chan string + EngineState string + LogLevel string + PrivKey string + ServerUri string + var EE *EvmEngine = &EvmEngine{} + func (e *EvmEngine) BlsPublicKey(req interface{}) (interface{}, error) + func (e *EvmEngine) BlsSign(req interface{}) (interface{}, error) + func (e *EvmEngine) Decrypt(req *EmitRequest) (interface{}, error) + func (e *EvmEngine) Encrypt(req *EmitRequest) (interface{}, error) + func (e *EvmEngine) List() (interface{}, error) + func (e *EvmEngine) ReloadFile() error + func (e *EvmEngine) SaveFile() error + func (e *EvmEngine) Setting(req *EmitRequest) error + func (e *EvmEngine) Start() error + func (e *EvmEngine) State() string + func (e *EvmEngine) Stop() error + type InnerError struct + Code int + Msg string + func (i InnerError) Error() string + type JSONRPCRequest struct + Error map[string]interface{} + ID int + JsonRpc string + Method string + Params []json.RawMessage + type Setting struct + Account string + AppBasePath string + Height int + PrivKey string + type WebSocketService struct + func NewWebSocketService(addr, acc string) (*WebSocketService, error) + func (ws *WebSocketService) Chans(pubk string) (<-chan []byte, chan<- []byte, error)