Search in sources :

Example 1 with RestrictedDefaultPrivacyController

use of org.hyperledger.besu.ethereum.privacy.RestrictedDefaultPrivacyController in project besu by hyperledger.

the class PrivGetPrivateTransactionIntegrationTest method setUp.

@BeforeEach
public void setUp() throws Exception {
    vertx = Vertx.vertx();
    testHarness = TesseraTestHarnessFactory.create("enclave", Files.createTempDirectory(folder, "enclave"), new EnclaveKeyConfiguration("enclave_key_0.pub", "enclave_key_0.key"), Optional.empty());
    testHarness.start();
    final EnclaveFactory factory = new EnclaveFactory(vertx);
    enclave = factory.createVertxEnclave(testHarness.clientUrl());
    privacyController = new RestrictedDefaultPrivacyController(blockchain, privateStateStorage, enclave, null, null, null, null, null);
}
Also used : EnclaveFactory(org.hyperledger.besu.enclave.EnclaveFactory) EnclaveKeyConfiguration(org.hyperledger.enclave.testutil.EnclaveKeyConfiguration) RestrictedDefaultPrivacyController(org.hyperledger.besu.ethereum.privacy.RestrictedDefaultPrivacyController) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

EnclaveFactory (org.hyperledger.besu.enclave.EnclaveFactory)1 RestrictedDefaultPrivacyController (org.hyperledger.besu.ethereum.privacy.RestrictedDefaultPrivacyController)1 EnclaveKeyConfiguration (org.hyperledger.enclave.testutil.EnclaveKeyConfiguration)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1