Versions in this module Expand all Collapse all v2 v2.1.0 Dec 22, 2021 Changes in this version + type SPV struct + func NewSPV(chain *conf.ChainConfig, store storage.StateDB, log *zap.SugaredLogger) (*SPV, error) + func (s *SPV) GetAdapter() adapter.SDKAdapter + func (s *SPV) GetCoder() coder.Coder + func (s *SPV) GetProver() prover.Prover + func (s *SPV) GetStateDB() storage.StateDB + func (s *SPV) GetStateManager() *manager.StateManager + func (s *SPV) GetVerifier() verifier.Verifier + func (s *SPV) Start() error + func (s *SPV) Stop() error + type SPVServer struct + func IntSPVServer() (*SPVServer, error) + func NewSPVServer(ymFile string, log *zap.SugaredLogger) (*SPVServer, error) + func (ss *SPVServer) ForwardRequest(request *cm_pbgo.TxRequest) (*cm_pbgo.TxResponse, error) + func (ss *SPVServer) GetAdapter(chainId string) (adapter.SDKAdapter, error) + func (ss *SPVServer) GetCoder(chainId string) (coder.Coder, error) + func (ss *SPVServer) GetDB() storage.StateDB + func (ss *SPVServer) RegisterCallBack(chainId string, callBack manager.CallBack) error + func (ss *SPVServer) SetLog(log *zap.SugaredLogger) error + func (ss *SPVServer) Start() error + func (ss *SPVServer) Stop() error + func (ss *SPVServer) ValidTransaction(request *api.TxValidationRequest) error