diff --git a/acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java b/acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java index 2404c4c6ed..d3b2af22c9 100644 --- a/acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java +++ b/acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java @@ -195,7 +195,7 @@ public class PrivacyNode implements AutoCloseable { } public String getTransactionSigningKey() { - return besu.keyPair().getPrivateKey().toString(); + return besu.getPrivacyParameters().getSigningKeyPair().orElseThrow().getPrivateKey().toString(); } public void addOtherEnclaveNode(final URI otherNode) {