wallet_open_with_password api

feat/orm-diffs
Niko PLP 12 hours ago
parent 2c77a640d8
commit a6e6b18e42
  1. 1
      app/nextgraph/src/native-api.ts
  2. 5
      sdk/js/api-web/worker.js

@ -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"],

@ -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,

Loading…
Cancel
Save