From cdafca7748303bfbb4145f6561caec1edfd85b45 Mon Sep 17 00:00:00 2001 From: rcmerci Date: Sat, 25 Oct 2025 17:01:45 +0800 Subject: [PATCH] enhance(rtc,e2ee): init user rsa-pair in debug-ui --- src/main/frontend/common/crypt.cljs | 22 ++++++ src/main/frontend/db/rtc/debug_ui.cljs | 74 +++++-------------- src/main/frontend/worker/rtc/crypt.cljs | 38 +++++++--- .../rtc/full_upload_download_graph.cljs | 2 +- 4 files changed, 69 insertions(+), 67 deletions(-) diff --git a/src/main/frontend/common/crypt.cljs b/src/main/frontend/common/crypt.cljs index dcffa015e9..bbc19ab460 100644 --- a/src/main/frontend/common/crypt.cljs +++ b/src/main/frontend/common/crypt.cljs @@ -4,6 +4,28 @@ (defonce subtle (.. js/crypto -subtle)) +(defn + (p/let [kp (> (state/get-auth-id-token) - (state/ {:devices (:devices keys-state) - :graph-aes-key-jwk (:aes-key-jwk keys-state)} + (-> keys-state (fipp/pprint {:width 20}) - with-out-str)]] - (shui/button - {:size :sm - :on-click (fn [_] - (when-let [device-uuid (not-empty (:remove-device-device-uuid keys-state))] - (when-let [token (state/get-auth-id-token)] - (state/