-
Notifications
You must be signed in to change notification settings - Fork 270
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
Crypto: add helper methods to UserIdentities
#3847
Conversation
301595e
to
9b66b62
Compare
ce3e08c
to
8dbfcda
Compare
64ac50a
to
ae2f0f7
Compare
8dbfcda
to
e9dc0ba
Compare
We have a bunch of methods which are the same in both `OtherUserIdentity` and `OwnUserIdentity`, so add some convenience methods to access them.
580c489
to
9102ef9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3847 +/- ##
==========================================
+ Coverage 84.10% 84.13% +0.02%
==========================================
Files 262 262
Lines 27637 27651 +14
==========================================
+ Hits 23245 23263 +18
+ Misses 4392 4388 -4 ☔ View full report in Codecov by Sentry. |
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.
Looks good; 2 questions.
@@ -2213,43 +2208,30 @@ pub(crate) mod tests { | |||
let own_identity = | |||
machine.get_identity(DataSet::own_id(), None).await.unwrap().unwrap().own().unwrap(); |
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.
This line looks similar: can it be simplified too?
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. We need to call own_identity.is_identity_signed()
; is_identity_signed
is specific to OwnUserIdentity
.
... instead of lots of `match` and `own()` and `other()`.
67b221a
to
93ca5fe
Compare
We have a bunch of methods which are the same in both
OtherUserIdentity
andOwnUserIdentity
, so add some convenience methods to access them.