accounts icon indicating copy to clipboard operation
accounts copied to clipboard

Adds a ShareAccountKeyFlow.

Open dezzeus opened this issue 5 years ago • 0 comments

In response to todays discussion on Slack, this is our attempt to provide the missing functionality of sharing the locally generated key (for an account) with the counterparty's (remote) host in order to allow the latter to also have the PublicKey - AccountInfo mapping for subsequent lookups.

The intended usage is to invoke a subflow after the FinalityFlow ones in order to ensure that the generated key is not shared if a FlowException is thrown. e.g. subFlow(ShareAccountKeyFlow(localAccountGeneratedAnonymousParty.owningKey, remoteAccountHostSession)) on the initiating flow, and subFlow(ShareAccountKeyHandlerFlow(issuingHostSession)) on the initiated one.

dezzeus avatar Jan 15 '20 15:01 dezzeus