Skip to content

Conversation

@kernelkind
Copy link
Member

Tested with MacOS & android. Need to test with linux & windows still

Run adb shell 'run-as com.damus.notedeck ls -la /data/user/0/com.damus.notedeck/files/storage/accounts' and observe nsec getting turned into pubkey, but you remain logged in as nsec.

This implementation migrates nsec values from plain files into the secure store while keeping the user logged in.

@alltheseas
Copy link
Contributor

how do i test this on linux?

@kernelkind
Copy link
Member Author

how do i test this on linux?

run it, add an nsec, look at ~/.local/share/notedeck/storage/accounts and make sure there is no nsec written there

@kernelkind
Copy link
Member Author

works with linux now & rebased with master

@alltheseas
Copy link
Contributor

I removed prior keys from the folder above using rm rf, and confirming via ls.

I ran cargo run --release, and found a newly created key in the same folder above on Linux.

@alltheseas
Copy link
Contributor

In the newly created file in .../accounts it is a npub, so the PR checks out 💪. Confirming I was able to post a note to nostr with this PR checked out https://nostr.eu/nevent1qqsdprsuyz4t76ecnsar3d3xjgd25dxy8rjfy30appsntzq5zntznqczyrrmal6g449683c9se37res6ug3z354df299eue63tnjcj2ml0etcevll2f

@alltheseas
Copy link
Contributor

alltheseas commented Nov 10, 2025

confirmed via the following command I stored to Linux keyring: secret-tool search service com.damus.notedeck

to install on linux I used sudo apt install libsecret-tools

Signed-off-by: kernelkind <[email protected]>
Signed-off-by: kernelkind <[email protected]>
Signed-off-by: kernelkind <[email protected]>
fixes:
> i opened up notedeck with the keyring branch and it seemed to
> nuke my acocunt

Signed-off-by: kernelkind <[email protected]>
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