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); }
public ChaosProtocolService(ChaosProtocolConfig config) { this.config = config; api = new Sp8deAPI { BaseUri = new Uri("https://protocol-api.sp8de.com/") }; }