Corda中的数据安全

Corda中的数据安全,corda,Corda,我有甲方和乙方 当我从PartyA调用流时,如下所示 class TestFlow { @InitiatingFlow @StartableByRPC open class TestFlowInitiator(val Party_B: Party) : FlowLogic<List<StateAndRef<TestState>>>() { @Suspendable override fun call(

我有甲方和乙方

当我从PartyA调用流时,如下所示

class TestFlow {
    @InitiatingFlow
    @StartableByRPC
    open class TestFlowInitiator(val Party_B: Party) : FlowLogic<List<StateAndRef<TestState>>>() {


        @Suspendable
        override fun call():List<StateAndRef<BilateralContractState>>{

            val testDataSession =  initiateFlow(Party_B)

            val testData = testDataSession.sendAndReceive<List<StateAndRef<TestState>>>(PartnerNode).unwrap(){it}

            return testData
        }
    }

    @InitiatedBy(TestFlowInitiator::class)
    class Responder(val otherPartySession: FlowSession) : FlowLogic<List<StateAndRef<TestState>>>() {
        companion object {
            object SENDING : ProgressTracker.Step("Sending sign response.")
        }

        override val progressTracker = ProgressTracker(SENDING)
        @Suspendable
        override fun call(): List<StateAndRef<TestState>> {



            val TestInfo = serviceHub.vaultService.queryBy<TestState>().states.filter { some filtering }.last()

            progressTracker.currentStep = SENDING

            otherPartySession.send(TestInfo)


            return TestInfo
        }
    }
}
类测试流{
@启动流
@星表
开放类TestFlowInitiator(val Party_B:Party):FlowLogic(){
@暂停
覆盖有趣的调用():列表{
val testDataSession=initiateFlow(乙方)
val testData=testDataSession.sendandereceive(PartnerNode.unwrap(){it}
返回测试数据
}
}
@InitiatedBy(TestFlowInitiator::类)
类响应程序(val otherPartySession:FlowSession):FlowLogic(){
伴星{
对象发送:ProgressTracker.Step(“发送符号响应”)
}
覆盖val progressTracker=progressTracker(发送)
@暂停
覆盖有趣的调用():列表{
val TestInfo=serviceHub.vaultService.queryBy().states.filter{some filtering}.last()
progressTracker.currentStep=发送
otherPartySession.send(TestInfo)
返回TestInfo
}
}
}

因此,通过该协议,甲方可以访问乙方的数据。如果乙方不想与任何人(或与未共享状态的选定人员)共享任何数据,我如何防止这种情况发生

合同或响应流程中都应该有验证,以防止当事人的状态被其他人使用。

你能分享一些合同的例子吗?