accounts
accounts copied to clipboard
Adds a ShareAccountKeyFlow.
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.