From a6e6b18e427cebff9d369dfc9248acb8a62fc463 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sat, 25 Oct 2025 12:19:37 +0300 Subject: [PATCH] wallet_open_with_password api --- app/nextgraph/src/native-api.ts | 1 + sdk/js/api-web/worker.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/nextgraph/src/native-api.ts b/app/nextgraph/src/native-api.ts index 72ef9d20..23968eea 100644 --- a/app/nextgraph/src/native-api.ts +++ b/app/nextgraph/src/native-api.ts @@ -18,6 +18,7 @@ const mapping = { "wallet_gen_shuffle_for_pazzle_opening": ["pazzle_length"], "wallet_gen_shuffle_for_pin": [], "wallet_open_with_pazzle": ["wallet","pazzle","pin"], + "wallet_open_with_password": ["wallet","password"], "wallet_open_with_mnemonic_words": ["wallet","mnemonic_words","pin"], "wallet_open_with_mnemonic": ["wallet","mnemonic","pin"], "wallet_was_opened": ["opened_wallet"], diff --git a/sdk/js/api-web/worker.js b/sdk/js/api-web/worker.js index 7839c95e..dec576c8 100644 --- a/sdk/js/api-web/worker.js +++ b/sdk/js/api-web/worker.js @@ -24,6 +24,11 @@ onmessage = (e) => { e.data.pazzle, e.data.pin_code ); + } else if (e.data.password) { + secret_wallet = await ng.wallet_open_with_password( + e.data.wallet, + e.data.password + ); } else if (e.data.mnemonic_words) { secret_wallet = await ng.wallet_open_with_mnemonic_words( e.data.wallet,