Open xavierlepretre opened 4 years ago
@roastario
FlowException
thrown in the responder, it was propagated back to the initiator, which is waiting for a reply.PublicKey?
while the initiator can return a PublicKey
. Unless the responder sends back "not found" and then throws (not sure about the implications of this double action). Is any ok?
Added tests too.
Unlike
ProvideKeyFlow
,SendKeyForAccountFlow
does not return the created key. This pull request fixes that.The use case is where both ends of the flow come to agreement about which key to use.
Because both ends need to know the key created, it was not possible to use
RequestKeyForAccountFlow
, and insteadRequestKeyFlow
was used.