-
Notifications
You must be signed in to change notification settings - Fork 1
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
Expose securified security state and expose methods that relied on unsecured entity control on hosts #375
Expose securified security state and expose methods that relied on unsecured entity control on hosts #375
Conversation
micbakos-rdx
commented
Feb 7, 2025
- Export a method that checks if an account is legacy olympia.
- Export a method that returns the unsecured controlling factor instance for accounts and personas.
- The BDFS error check, as discussed, is not needed so I removed the implementation I temporarily wrote in sargon.
- Expose secured entity control to hosts.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #375 +/- ##
==========================================
+ Coverage 92.64% 92.68% +0.03%
==========================================
Files 1180 1184 +4
Lines 26658 26689 +31
Branches 77 85 +8
==========================================
+ Hits 24698 24737 +39
+ Misses 1949 1941 -8
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
impl AccountIsLegacyOlympia for Account { | ||
fn is_legacy_olympia(&self) -> bool { | ||
let Some(unsecured_entity_control) = self.security_state.as_unsecured() |
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.
You can just self.address.is_legacy()
} | ||
|
||
impl EntityUnsecuredControllingFactorInstance for Account { | ||
fn unsecured_controlling_factor_instance( |
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.
I want to avoid this.
Why are we adding it?
Temporarily as part of a process of transitioning?
As so said the other day, I don't want hosts to concern themselves with FactorInstances / PublicKeys at all
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.
Temporarily as part of a process of transitioning?
Yes exactly for this reason. The refactoring effort is too much for now.
@@ -23,8 +27,10 @@ impl From<InternalEntitySecurityState> for EntitySecurityState { | |||
value: value.into(), | |||
} | |||
} | |||
InternalEntitySecurityState::Securified { value: _ } => { | |||
panic!("Securified state not yet supported in the Wallet") | |||
InternalEntitySecurityState::Securified { value } => { |
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.
With this added you should be able to use InternalConversion macro on EntitySecurityState
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.
Right will do
Will keep this PR open until iOS host integrates with it. |
…me exposed method for legacy olympia
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Generated by cargo-workspaces
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Generated by cargo-workspaces
216549b
to
f99d389
Compare