diff --git a/constants.properties b/constants.properties index dc70abac70..43e611a56d 100644 --- a/constants.properties +++ b/constants.properties @@ -2,7 +2,7 @@ # because some versions here need to be matched by app authors in # their own projects. So don't get fancy with syntax! -cordaVersion=4.8.5.17-CONCLAVE-SNAPSHOT +cordaVersion=4.8.5.18-CONCLAVE-SNAPSHOT versionSuffix= gradlePluginsVersion=5.0.12 kotlinVersion=1.2.71 diff --git a/core/src/main/kotlin/net/corda/core/node/services/EncryptedTransactionService.kt b/core/src/main/kotlin/net/corda/core/node/services/EncryptedTransactionService.kt index d7b019fe71..ee6938c5e9 100644 --- a/core/src/main/kotlin/net/corda/core/node/services/EncryptedTransactionService.kt +++ b/core/src/main/kotlin/net/corda/core/node/services/EncryptedTransactionService.kt @@ -6,6 +6,7 @@ import net.corda.core.conclave.common.DummyCordaEnclaveClient import net.corda.core.conclave.common.CordaEnclaveClient import net.corda.core.conclave.common.dto.ConclaveLedgerTxModel import net.corda.core.conclave.common.dto.EncryptedVerifiableTxAndDependencies +import net.corda.core.conclave.common.dto.InputsAndRefsForNode import net.corda.core.identity.CordaX500Name import net.corda.core.internal.FlowStateMachine import net.corda.core.serialization.SingletonSerializeAsToken @@ -54,4 +55,9 @@ class EncryptedTransactionService(val enclaveClient: CordaEnclaveClient = DummyC fun encryptTransactionForRemote(flowId: UUID, encryptedTransaction: EncryptedTransaction, theirAttestationBytes: ByteArray): EncryptedTransaction { return enclaveClient.encryptEncryptedTransactionForRemote(flowId, encryptedTransaction, theirAttestationBytes) } + + @Suspendable + fun decryptInputAndRefsForNode(encryptedTransaction: EncryptedTransaction): InputsAndRefsForNode { + return enclaveClient.decryptInputAndRefsForNode(encryptedTransaction) + } } \ No newline at end of file