corda / accounts

Accounts on Corda
Other
36 stars 38 forks source link

Advice on implementing equivalent to FlowLogic.ourIdentity #88

Closed manosbatsis closed 3 years ago

manosbatsis commented 4 years ago

It's typical for developers to rely on Flow.ourIdentity or (FlowStateMachine.ourIdentity if you like) for a consistent result in regards to the initiating identity. This may seem trivial but in practice provides an implicit identity context to a flow and all subflows or other components used during execution of it's FlowLogic.call.

My question is, how could an app-specific implementation/initialization in FlowLogic reliably "store" an AccountInfo (or PublicKey, or AnonymousParty) object to provide a similar context and API for all code within a FlowLogic.call stack?

manosbatsis commented 3 years ago

Closing as it's not relevant anymore, FlowLogic.ourIdentity simply isn't the right context when dealing with accounts.