mirror of
https://github.com/corda/corda.git
synced 2025-02-04 18:22:29 +00:00
Fix return type
This commit is contained in:
parent
fc2b9d0cab
commit
19be27036e
@ -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.10-CONCLAVE-SNAPSHOT
|
||||
cordaVersion=4.8.5.11-CONCLAVE-SNAPSHOT
|
||||
versionSuffix=
|
||||
gradlePluginsVersion=5.0.12
|
||||
kotlinVersion=1.2.71
|
||||
|
@ -2,6 +2,7 @@ package net.corda.core.conclave.common
|
||||
|
||||
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.contracts.ContractState
|
||||
import net.corda.core.contracts.StateAndRef
|
||||
import net.corda.core.flows.FlowException
|
||||
@ -121,9 +122,9 @@ abstract class CordaEnclaveClient(val x500: CordaX500Name, val serviceHub: Servi
|
||||
*
|
||||
* @param encryptedTransaction The [EncryptedTransaction] for which registered node requests decryption from enclave.
|
||||
*
|
||||
* @return Pair of arrays of input states and reference states. Input states are filtered by the list of registered participants.
|
||||
* @return [InputsAndRefsForNode] as arrays of input states and reference states. Input states are filtered by the list of registered participants.
|
||||
*/
|
||||
abstract fun decryptInputAndRefsForNode(encryptedTransaction: EncryptedTransaction): Pair<Array<StateAndRef<ContractState>>, Array<StateAndRef<ContractState>>>
|
||||
abstract fun decryptInputAndRefsForNode(encryptedTransaction: EncryptedTransaction): InputsAndRefsForNode
|
||||
}
|
||||
|
||||
class DummyCordaEnclaveClient(x500: CordaX500Name, serviceHub: ServiceHub? = null): CordaEnclaveClient(x500, serviceHub) {
|
||||
@ -156,7 +157,7 @@ class DummyCordaEnclaveClient(x500: CordaX500Name, serviceHub: ServiceHub? = nul
|
||||
throw UnsupportedOperationException("Add your custom enclave client implementation")
|
||||
}
|
||||
|
||||
override fun decryptInputAndRefsForNode(encryptedTransaction: EncryptedTransaction): Pair<Array<StateAndRef<ContractState>>, Array<StateAndRef<ContractState>>> {
|
||||
override fun decryptInputAndRefsForNode(encryptedTransaction: EncryptedTransaction): InputsAndRefsForNode {
|
||||
throw UnsupportedOperationException("Add your custom enclave client implementation")
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user