Skip to content

Sam/duress biometric #651

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

Merged
merged 1 commit into from
May 8, 2025
Merged

Sam/duress biometric #651

merged 1 commit into from
May 8, 2025

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented May 7, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

#650

Description

none

@samholmes samholmes force-pushed the sam/duress-biometric branch 2 times, most recently from 7b80c71 to f31f122 Compare May 8, 2025 00:09
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change needs to be reverted, but the rest looks good.

Comment on lines 157 to 163
// If we're in duress mode, we need to use the duress session key
// to return the loginKey:
if (this.isDuressAccount) {
return base58.stringify(sessionKey.loginKey)
}

// Maybe we could just always return the loginKey from sessionKey?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, just always return return base58.stringify(login.loginKey). The green arrow (the session key) can point to nodes below us, but we want to return the key for the orange arrow (the current appId).

If we want to return the green arrow, we'd need to update the login-ui to store which appId it goes with, because that could be different from login to login. We aren't planning to make such a big change here.

@samholmes samholmes force-pushed the sam/duress-biometric branch from 48fa434 to 727089b Compare May 8, 2025 21:47
@samholmes samholmes enabled auto-merge May 8, 2025 21:47
@samholmes samholmes merged commit 569e055 into master May 8, 2025
2 checks passed
@samholmes samholmes deleted the sam/duress-biometric branch May 8, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants