From 042066f88295f03e58a8c24625bb2a35413f95ee Mon Sep 17 00:00:00 2001 From: Callum Macdonald Date: Sat, 23 Nov 2024 21:46:47 +0000 Subject: [PATCH] Reveal nsec and mnemonic. --- nr-app/app/(tabs)/settings.tsx | 25 +++++++++++++++---------- nr-app/src/nostr/keystore.nostr.ts | 10 ++++++++++ 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/nr-app/app/(tabs)/settings.tsx b/nr-app/app/(tabs)/settings.tsx index d828f36..5060f08 100644 --- a/nr-app/app/(tabs)/settings.tsx +++ b/nr-app/app/(tabs)/settings.tsx @@ -1,4 +1,7 @@ -import { getPrivateKeyHex } from "@/nostr/keystore.nostr"; +import { + getPrivateKeyHex, + getPrivateKeyMnemonic, +} from "@/nostr/keystore.nostr"; import { setVisiblePlusCodes } from "@/redux/actions/map.actions"; import { useAppDispatch, useAppSelector } from "@/redux/hooks"; import { setPrivateKeyPromiseAction } from "@/redux/sagas/keystore.saga"; @@ -16,6 +19,7 @@ import { export default function TabThreeScreen() { const [nsec, setNsec] = useState(""); + const [mnemonic, setMnemonic] = useState(""); const hasPrivateKey = useAppSelector( keystoreSelectors.selectHasPrivateKeyInSecureStorage, ); @@ -40,28 +44,29 @@ export default function TabThreeScreen() { pub key hex nsec - {/* */} - seed - {/* */} - Relays - - Help - How does this work? -