loaders

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEthClient

func LoadEthClient(ks *ethkeystore.KeyStore, acc *accounts.Account, web3Url string) (*eth.Client, error)

func LoadIdenPubOffChainWriteHttp

func LoadIdenPubOffChainWriteHttp(storage db.Storage, id *core.ID,
	url string) (*idenpuboffchainwriterhttp.IdenPubOffChainWriteHttp, error)

func LoadIssuer

func LoadIssuer(id *core.ID, storage db.Storage, keyStore *babykeystore.KeyStore,
	idenPubOnChain idenpubonchain.IdenPubOnChainer,
	idenStateZkProofConf *issuer.IdenStateZkProofConf,
	idenPubOffChainWrite idenpuboffchain.IdenPubOffChainWriter) (*issuer.Issuer, error)

func LoadKeyStore

func LoadKeyStore(cfgKeyStore *config.KeyStore, accountAddr *common.Address) (*ethkeystore.KeyStore, *accounts.Account, error)

func LoadKeyStoreBabyJub

func LoadKeyStoreBabyJub(cfgKeyStore *config.KeyStore, kOp *babyjub.PublicKey) (*babykeystore.KeyStore, error)

func LoadStorage

func LoadStorage(storagePath string) (db.Storage, error)

Types

type Server

type Server struct {
	Cfg *config.Config

	Id                       core.ID
	Mt                       *merkletree.MerkleTree
	Issuer                   *issuer.Issuer
	IdenPubOnChain           idenpubonchain.IdenPubOnChainer
	IdenPubOffChainWriteHttp *idenpuboffchainwriterhttp.IdenPubOffChainWriteHttp
	KeyStore                 *ethkeystore.KeyStore
	KeyStoreBaby             *babykeystore.KeyStore
	EthClient                *eth.Client
	KOp                      *babyjub.PublicKey
	// contains filtered or unexported fields
}

func LoadServer

func LoadServer(cfg *config.Config) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

func (*Server) StopAndJoin

func (s *Server) StopAndJoin()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL