From 30b0eebc3ef358eb9f43147eaa60f8aa58da99bd Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 15 Aug 2023 13:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=AF=86=E7=A0=81=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/js/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Data/js/main.js b/Data/js/main.js index 9c158a1..8946471 100644 --- a/Data/js/main.js +++ b/Data/js/main.js @@ -575,3 +575,15 @@ function deleteAccount(funId) { function resetWalletAddress(funId) { promiseCb(funId, jc.wallet.resetWalletAddress()); } + +function storePassLocal(funId, key, val) { + promiseCb(funId, jc.wallet.nativeSvr.storagePass(key, val)); +} + +function restorePassLocal(funId, key) { + promiseCb(funId, jc.wallet.nativeSvr.authGetStoragePass(key)); +} + +function getLocalPassState(funId, key) { + promiseCb(funId, jc.wallet.nativeSvr.passStorageState(key)); +}