Ejemplo n.º 1
0
 public DemoProtocolService(ChaosProtocolConfig config, IRandomNumberGenerator random, IGenericDataStorage storage, ICryptoService cryptoService, IKeySecretManager keySecretManager, IpfsFileStorageService ipfs)
 {
     this.random        = random;
     this.storage       = storage;
     this.cryptoService = cryptoService;
     this.ipfs          = ipfs;
     this.keySecret     = keySecretManager.LoadKeySecret(config.ApiSecret);
 }
Ejemplo n.º 2
0
        public ChaosProtocolService(ChaosProtocolConfig config)
        {
            this.config = config;

            api = new Sp8deAPI
            {
                BaseUri = new Uri("https://protocol-api.sp8de.com/")
            };
        }