Exemplo n.º 1
0
        public SeedController(ISp8deTransactionStorage storage, ICryptoService cryptoService, Sp8deNodeConfig config)
        {
            if (config == null || config.PrivateKeys == null)
            {
                throw new ArgumentNullException(nameof(Sp8deNodeConfig));
            }

            this.keys               = config.PrivateKeys.Select(x => EthKeySecret.Load(x)).ToArray();
            this.storage            = storage;
            this.cryptoService      = cryptoService;
            this.transactionService = new Sp8deTransactionNodeService(cryptoService, storage, Enumerable.Empty <IExternalAnchorService>());
        }
Exemplo n.º 2
0
 public TransactionsController(ISp8deTransactionStorage storage)
 {
     this.storage = storage;
 }
Exemplo n.º 3
0
 public Sp8deSearchService(ISp8deBlockStorage blockStorage, ISp8deTransactionStorage transactionStorage)
 {
     this.blockStorage       = blockStorage;
     this.transactionStorage = transactionStorage;
 }
Exemplo n.º 4
0
 public TransactionController(ProtocolService protocolService, ICryptoService cryptoService, ISp8deTransactionStorage transactionStorage)
 {
     this.protocolService    = protocolService;
     this.cryptoService      = cryptoService;
     this.transactionStorage = transactionStorage;
 }
Exemplo n.º 5
0
 public Sp8deTransactionNodeService(ICryptoService cryptoService, ISp8deTransactionStorage transactionStorage, IEnumerable <IExternalAnchorService> anchorServices)
 {
     this.cryptoService      = cryptoService;
     this.transactionStorage = transactionStorage;
     this.anchorServices     = anchorServices;
 }
Exemplo n.º 6
0
 public Sp8deBlockProducer(ISp8deTransactionStorage transactionStorage, ISp8deBlockStorage blockStorage, ICryptoService cryptoService)
 {
     this.transactionStorage = transactionStorage;
     this.blockStorage       = blockStorage;
     this.cryptoService      = cryptoService;
 }
Exemplo n.º 7
0
 public LatestController(ISp8deBlockStorage blockStorage, ISp8deTransactionStorage transactionStorage)
 {
     this.blockStorage       = blockStorage;
     this.transactionStorage = transactionStorage;
 }