Put out PK on Key page

This commit is contained in:
@s.roertgen 2024-12-02 09:37:20 +01:00
parent f560b89e62
commit 264a3a39f8
2 changed files with 97 additions and 0 deletions

View file

@ -276,9 +276,11 @@
;; Keys Panel
(defn keys-panel []
(let [npub @(re-frame/subscribe [::subs/npub])
pk (nostr/get-pk-from-npub npub)
nsec @(re-frame/subscribe [::subs/nsec])] [:div
[:h1 "Keys"]
[:p (str "Your Npub: " npub)]
[:p (str "Your PK: " pk)]
[:p (str "Your Nsec: " nsec)]]))
(defmethod routes/panels :keys-panel [] [keys-panel])