Files
buzz/mobile/lib/shared/hosted
Tom Brow 34174214fc fix(mobile): restore keysForNsec after the native key derivation change (#9085)
## Summary

[#8965 native key derivation](https://github.com/block/buzz/pull/8965)
removed `AccountIdentityStore._keys`. `keysForNsec`, added by [#9029
nsec backup](https://github.com/block/buzz/pull/9029), which merged
first, still called it. The two PRs didn't conflict textually, so `main`
now fails `flutter analyze` (`_keys` isn't defined at
`account_identity_store.dart:356`) and mobile CI is red.

This builds the keys through `keysForHex(_nsecHex(nsec))`, the same path
`withKeys` uses since #8965. It applies the same bech32 decoding and
secp256k1 scalar validation that `_keys` did.

## Testing

- `just mobile-check`: no issues found.
- `flutter test` (full mobile suite): 4460 passed, 49 skipped. No UI
change, so no app run.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Tom Brow <tomb@squareup.com>
Co-authored-by: Tom Brow <tomb@squareup.com>
Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 18:47:12 -08:00
..