Skip to content

Commit

Permalink
Information for SEKey
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Mar 27, 2021
1 parent c431ec5 commit a1991b1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Blink/BKPubKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,12 @@ extension BKPubKey {
card.removeCard()
}

open override func isEqual(_ object: Any?) -> Bool {
guard let other = object as? BKPubKey else {
return false
}

return id == other.id && publicKey == other.publicKey && storageType == other.storageType
}

}
3 changes: 2 additions & 1 deletion Settings/ViewControllers/BKPubKey/KeyDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ struct KeyDetailsView: View {

BKPubKey.saveIDS()
nav.navController.popViewController(animated: true)
self.reloadCards()
} catch {
errorMessage = error.localizedDescription
errorAlertIsPresented = true
Expand Down Expand Up @@ -140,7 +141,7 @@ struct KeyDetailsView: View {
let frame = geometry.frame(in: .global)
Button(action: { _sharePublicKey(frame: frame) }, label: {
Label("Share", systemImage: "square.and.arrow.up")
})
}).frame(width: frame.width, height: frame.height, alignment: .leading)
})

}
Expand Down
5 changes: 3 additions & 2 deletions Settings/ViewControllers/BKPubKey/NewSEKeyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ struct NewSEKeyView: View {
}
}

Section(header: Text("INFORMATION"),
footer: Text("Hint about SE KEY.")
Section(
header: Text("INFORMATION"),
footer: Text("A Secure Enclave key is a hardware stored key that is isolated from the rest of the system. Note this type of private key cannot be read or copied, making it more difficult to become compromised.")
) {

}
Expand Down

0 comments on commit a1991b1

Please sign in to comment.