Search in sources :

Example 1 with PrivacyNodeConfiguration

use of org.hyperledger.besu.tests.acceptance.dsl.node.configuration.privacy.PrivacyNodeConfiguration in project besu by hyperledger.

the class PluginPrivacySigningAcceptanceTest method setup.

@Before
public void setup() throws IOException {
    minerNode = privacyBesu.create(new PrivacyNodeConfiguration(false, false, true, new BesuNodeConfigurationBuilder().name("miner").miningEnabled().jsonRpcEnabled().webSocketEnabled().enablePrivateTransactions().keyFilePath(BOB.getPrivateKeyPath()).plugins(Collections.singletonList("testPlugins")).extraCLIOptions(List.of("--plugin-privacy-service-encryption-prefix=0xAA", "--plugin-privacy-service-signing-enabled=true", "--plugin-privacy-service-signing-key=8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63")).build(), new EnclaveKeyConfiguration(BOB.getEnclaveKeyPaths(), BOB.getEnclavePrivateKeyPaths())), EnclaveType.NOOP, Optional.empty());
    privacyCluster.start(minerNode);
}
Also used : EnclaveKeyConfiguration(org.hyperledger.enclave.testutil.EnclaveKeyConfiguration) BesuNodeConfigurationBuilder(org.hyperledger.besu.tests.acceptance.dsl.node.configuration.BesuNodeConfigurationBuilder) PrivacyNodeConfiguration(org.hyperledger.besu.tests.acceptance.dsl.node.configuration.privacy.PrivacyNodeConfiguration) Before(org.junit.Before)

Aggregations

BesuNodeConfigurationBuilder (org.hyperledger.besu.tests.acceptance.dsl.node.configuration.BesuNodeConfigurationBuilder)1 PrivacyNodeConfiguration (org.hyperledger.besu.tests.acceptance.dsl.node.configuration.privacy.PrivacyNodeConfiguration)1 EnclaveKeyConfiguration (org.hyperledger.enclave.testutil.EnclaveKeyConfiguration)1 Before (org.junit.Before)1