use of org.web3j.quorum.enclave.protocol.EnclaveService in project besu by hyperledger.
the class ContainerTests method testSetUp.
@Before
public void testSetUp() throws IOException, CipherException {
besuEnclaveService = new EnclaveService("http://" + tesseraBesuContainer.getHost(), tesseraBesuContainer.getMappedPort(tesseraRestPort), new OkHttpClient());
besuEnclave = new Tessera(besuEnclaveService, besuWeb3j);
besuPollingTransactionReceiptProcessor = new PollingTransactionReceiptProcessor(besuWeb3j, 1000, 10);
goQuorumEnclaveService = new EnclaveService("http://" + tesseraGoQuorumContainer.getHost(), tesseraGoQuorumContainer.getMappedPort(tesseraRestPort), new OkHttpClient());
goQuorumEnclave = new Tessera(goQuorumEnclaveService, goQuorumWeb3j);
goQuorumPollingTransactionReceiptProcessor = new PollingTransactionReceiptProcessor(goQuorumWeb3j, 1000, 10);
credentials = loadCredentials();
}
use of org.web3j.quorum.enclave.protocol.EnclaveService 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