fixed master key export

This commit is contained in:
Michele Balistreri 2022-10-19 13:53:41 +02:00
parent 7ffa0cc32d
commit 95e1c1249a

View File

@ -371,7 +371,7 @@ func (f *KeycardFlow) storeMetadata(kc *keycardContext) error {
}
func (f *KeycardFlow) exportKey(kc *keycardContext, path string, onlyPublic bool) (*KeyPair, error) {
keyPair, err := kc.exportKey(true, false, onlyPublic, path)
keyPair, err := kc.exportKey(true, path == masterPath, onlyPublic, path)
if isSCardError(err) {
return nil, restartErr()