-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add new crypto features #852
Changes from 1 commit
2ae2f7b
d141b6b
85f5ff3
5a74178
3d5d799
69edf41
cc2547f
901542d
7864c8f
a68b529
647288a
3c7601b
d166880
b35f673
3546cd9
56db090
38517a6
d77a9ab
702a98c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,7 @@ struct AccountKey { | |
struct PublicKey { | ||
let publicKey: [UInt8] | ||
let signatureAlgorithm: SignatureAlgorithm | ||
let valid: Bool | ||
let isValid: Bool | ||
|
||
/// Verifies a signature. Checks whether the signature was produced by signing | ||
/// the given tag and data, using this public key and the given hash algorithm | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not quite what the verification checks, I suggest updating the text to be more precise:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another point, I'm not sure if this is right place to mention that all verifications with an invalid public key will fail. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it should be fine to add it here, or we can also add it as a note outside of the code block. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can
PublicKey
fields (data, signature algo, isValid..) be updated after the creation of the object?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they are defined as constant fields (i.e. read-only).