Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a ShareAccountKeyFlow. #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dezzeus
Copy link

@dezzeus dezzeus commented Jan 15, 2020

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.

This flow can be used to share a [PublicKey]-[AccountInfo] mapping with another
host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant