From f8d203fc9e30a352692a4299ca61f36f746fefc5 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 16 Nov 2022 13:23:45 +0100 Subject: [PATCH] add instance uid to flows --- flow.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flow.go b/flow.go index 7f3cbd8..1a11b85 100644 --- a/flow.go +++ b/flow.go @@ -299,7 +299,7 @@ func (f *KeycardFlow) exportKeysFlow(kc *keycardContext, recover bool) (FlowStat return nil, err } - result := FlowStatus{KeyUID: f.cardInfo.keyUID} + result := FlowStatus{KeyUID: f.cardInfo.keyUID, InstanceUID: f.cardInfo.instanceUID} key, err := f.exportKey(kc, encryptionPath, false) if err != nil { @@ -355,7 +355,7 @@ func (f *KeycardFlow) exportPublicFlow(kc *keycardContext) (FlowStatus, error) { return nil, err } - result := FlowStatus{KeyUID: f.cardInfo.keyUID} + result := FlowStatus{KeyUID: f.cardInfo.keyUID, InstanceUID: f.cardInfo.instanceUID} if exportMaster, ok := f.params[ExportMaster]; ok && exportMaster.(bool) { masterKey, err := f.exportKey(kc, masterPath, true) @@ -396,7 +396,7 @@ func (f *KeycardFlow) loadKeysFlow(kc *keycardContext) (FlowStatus, error) { return nil, err } - return FlowStatus{KeyUID: f.cardInfo.keyUID}, nil + return FlowStatus{KeyUID: f.cardInfo.keyUID, InstanceUID: f.cardInfo.instanceUID}, nil } func (f *KeycardFlow) signFlow(kc *keycardContext) (FlowStatus, error) { @@ -418,7 +418,7 @@ func (f *KeycardFlow) signFlow(kc *keycardContext) (FlowStatus, error) { return nil, err } - return FlowStatus{KeyUID: f.cardInfo.keyUID, TXSignature: signature}, nil + return FlowStatus{KeyUID: f.cardInfo.keyUID, InstanceUID: f.cardInfo.instanceUID, TXSignature: signature}, nil } func (f *KeycardFlow) changePINFlow(kc *keycardContext) (FlowStatus, error) {