corda / accounts

Accounts on Corda
Other
36 stars 38 forks source link

SendKeyForAccountFlow to return AnonymousParty #95

Open xavierlepretre opened 4 years ago

xavierlepretre commented 4 years ago

It would be beneficial, here that:

class SendKeyForAccountFlow(val otherSide: FlowSession) : FlowLogic<Unit>() {

Be instead:

class SendKeyForAccountFlow(val otherSide: FlowSession) : FlowLogic<AnonymousParty>() {

My use case is an atomic sale, 1 NFT in exchange for a bunch of fungible tokens:

For the reason of "the buyer verifies that the transaction is correct", the buyer session needs to know what was sent earlier.

You will notice that this way of doing is already done in confidential identities here for ProvideKeyFlow.