use of org.web3j.quorum.enclave.Constellation in project quorum-acceptance-tests by ConsenSys.
the class RawContractService method buildEnclave.
private Enclave buildEnclave(QuorumNode source, Quorum client) {
String thirdPartyURL = privacyService.thirdPartyUrl(source);
if (thirdPartyURL.endsWith("ipc")) {
EnclaveService enclaveService = new EnclaveService("http://localhost", 12345, getIPCHttpClient(thirdPartyURL));
return new Constellation(enclaveService, client);
} else {
URI uri = URI.create(thirdPartyURL);
String enclaveUrl = uri.getScheme() + "://" + uri.getHost();
EnclaveService enclaveService = new EnclaveService(enclaveUrl, uri.getPort(), httpClient);
return new Tessera(enclaveService, client);
}
}
Aggregations