@needmoretruth/nmts-cli 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.ko.md +1 -1
  3. package/README.md +1 -1
  4. package/dist/api.js +3 -0
  5. package/dist/artifact-about.d.ts +1 -1
  6. package/dist/client-id.d.ts +11 -0
  7. package/dist/client-id.js +30 -0
  8. package/dist/commands/mcp.js +3 -0
  9. package/dist/commands/wallet-activity.d.ts +10 -6
  10. package/dist/commands/wallet-activity.js +17 -6
  11. package/dist/env-vars.d.ts +1 -1
  12. package/dist/env-vars.js +1 -1
  13. package/dist/extend-chain.d.ts +4 -6
  14. package/dist/extend-chain.js +30 -28
  15. package/dist/net-retry.js +14 -0
  16. package/dist/portable.d.ts +2 -0
  17. package/dist/portable.js +2 -0
  18. package/dist/product.d.ts +1 -1
  19. package/dist/product.js +1 -1
  20. package/dist/reach.d.ts +1 -1
  21. package/dist/shared/lib/storage-control/chain.d.ts +30 -29
  22. package/dist/shared/lib/storage-control/chain.js +14 -20
  23. package/dist/shared/lib/wallet/activity.d.ts +42 -48
  24. package/dist/shared/lib/wallet/activity.js +51 -30
  25. package/dist/shared/lib/wallet/address-history.d.ts +42 -0
  26. package/dist/shared/lib/wallet/address-history.js +247 -0
  27. package/dist/shared/lib/wallet/chain-calls.d.ts +44 -0
  28. package/dist/shared/lib/wallet/chain-calls.js +59 -0
  29. package/dist/storage-control-chain.js +5 -4
  30. package/dist/sui-execute.d.ts +54 -0
  31. package/dist/sui-execute.js +43 -0
  32. package/dist/sui-rpc.d.ts +16 -9
  33. package/dist/sui-rpc.js +53 -19
  34. package/dist/upload-wallet-chain.d.ts +8 -3
  35. package/dist/upload-wallet-chain.js +33 -29
  36. package/dist/upload-wallet-plan.d.ts +1 -1
  37. package/dist/upload-wallet-put.js +1 -1
  38. package/dist/wallet-activity-chain.d.ts +2 -2
  39. package/dist/wallet-activity-chain.js +12 -27
  40. package/dist/wallet-chain.js +19 -13
  41. package/dist/wallet-list-chain.d.ts +1 -1
  42. package/dist/wallet-list-chain.js +13 -14
  43. package/dist/wallet-send-chain.js +4 -3
  44. package/dist/wallet-sign-external.d.ts +18 -25
  45. package/dist/wallet-sign-external.js +16 -19
  46. package/dist/wallet-sign.js +22 -70
  47. package/dist/wallet-storage-chain.js +2 -3
  48. package/dist/wallet-swap-chain.d.ts +3 -6
  49. package/dist/wallet-swap-chain.js +16 -16
  50. package/dist/wallet-swap-quote.js +16 -17
  51. package/dist/walrus-fresh.d.ts +8 -0
  52. package/dist/walrus-fresh.js +15 -0
  53. package/dist/walrus-write.js +6 -16
  54. package/dist/walrus.d.ts +13 -13
  55. package/dist/walrus.js +15 -15
  56. package/package.json +7 -4
  57. package/server.json +2 -2
  58. package/vendor/nmts-crypto/nmts_crypto_wasm.d.ts +11 -11
  59. package/vendor/nmts-crypto/nmts_crypto_wasm_bg.wasm +0 -0
  60. package/vendor/nmts-crypto/nmts_crypto_wasm_bg.wasm.d.ts +11 -11
@@ -1,6 +1,7 @@
1
1
  // A venue's answer, read from the chain: how much comes out now, what stays unused, and the fee the
2
- // quote's own numbers say the venue charges. ⛔ EVERYTHING HERE IS A READ — `devInspect`, no gas,
3
- // no key, no signature, and a zero address as the nominal sender so a quote needs no funded wallet.
2
+ // quote's own numbers say the venue charges. ⛔ EVERYTHING HERE IS A READ — a simulation with checks
3
+ // off (what JSON-RPC called a devInspect), no gas, no key, no signature, and a zero address as the
4
+ // nominal sender so a quote needs no funded wallet.
4
5
  //
5
6
  // ⛔ THE ARITHMETIC IS THE BROWSER'S, copied byte-for-byte (`shared/lib/wallet/swap-rules.ts`); this
6
7
  // file only asks the chain and hands the answers to it. DeepBook's fee has no constant: it is
@@ -18,6 +19,7 @@
18
19
  // answer, not a failure: the amount is below one lot, or the book is empty.
19
20
  import { bcs } from "@mysten/sui/bcs";
20
21
  import { Transaction } from "@mysten/sui/transactions";
22
+ import { inspect, u64FromLe } from "./shared/lib/wallet/chain-calls.js";
21
23
  import { hopFor, PAIR_COINS, pickRoute, routeHops, venueRoutes, } from "./shared/lib/wallet/swap-routes.js";
22
24
  import { combineFeeBps, deepbookRowFrom, directionCoins, feeRateBpsOf, measureDeepbookFeeBps, } from "./shared/lib/wallet/swap-rules.js";
23
25
  import { BLUEFIN_MAX_SQRT_PRICE, BLUEFIN_MIN_SQRT_PRICE, DEEPBOOK_PACKAGE_IDS, DEEPBOOK_SUI_USDC_POOLS, DEEPBOOK_WAL_SUI_POOLS, DEEPBOOK_WAL_USDC_POOLS, USDC_COIN_TYPES, } from "./shared/lib/wallet/venue-ids.js";
@@ -56,9 +58,6 @@ export function routesWithPools(venue, direction, pools) {
56
58
  return hops !== null && hops.every((hop) => pools[hop.pair] !== null);
57
59
  });
58
60
  }
59
- function readU64(value) {
60
- return BigInt(bcs.U64.parse(Uint8Array.from(value[0])));
61
- }
62
61
  /**
63
62
  * The FRONT of Bluefin's `SwapResult`, in the order its `pool.move` declares them. BCS reads from
64
63
  * the front, so the fields behind these need not be known. The first three are checked against the
@@ -90,14 +89,13 @@ async function quoteBluefin(client, network, direction, amountInUnits, binding)
90
89
  tx.pure.u128(a2b ? BLUEFIN_MIN_SQRT_PRICE : BLUEFIN_MAX_SQRT_PRICE),
91
90
  ],
92
91
  });
93
- const res = await client.devInspectTransactionBlock({ sender: QUOTE_SENDER, transactionBlock: tx });
94
- if (res.error)
92
+ const res = await inspect(client, tx, QUOTE_SENDER);
93
+ if (res.error !== null)
95
94
  throw new Error(`the Bluefin quote was refused on chain: ${res.error}`);
96
- const returned = res.results?.[0]?.returnValues;
97
- const first = returned?.[0];
95
+ const first = res.results[0]?.returnValues[0];
98
96
  if (first === undefined)
99
97
  throw new Error("the Bluefin quote came back with no value");
100
- const result = BluefinSwapResultPrefix.parse(Uint8Array.from(first[0]));
98
+ const result = BluefinSwapResultPrefix.parse(first);
101
99
  if (result.a2b !== a2b || result.by_amount_in !== true || BigInt(result.amount_specified) !== amountInUnits) {
102
100
  throw new Error("the Bluefin quote did not echo the question it was asked");
103
101
  }
@@ -135,21 +133,22 @@ async function quoteDeepbookHop(client, network, hop, amountInUnits) {
135
133
  };
136
134
  // Both modes in ONE inspection so they see the same book. If the DEEP-mode call is refused, the
137
135
  // quote is asked again alone: what comes out matters more than what the fee was.
138
- let res = await client.devInspectTransactionBlock({ sender: QUOTE_SENDER, transactionBlock: build(true) });
136
+ let res = await inspect(client, build(true), QUOTE_SENDER);
139
137
  let deepModeAnswered = true;
140
- if (res.error) {
138
+ if (res.error !== null) {
141
139
  deepModeAnswered = false;
142
- res = await client.devInspectTransactionBlock({ sender: QUOTE_SENDER, transactionBlock: build(false) });
140
+ res = await inspect(client, build(false), QUOTE_SENDER);
143
141
  }
144
- if (res.error)
142
+ if (res.error !== null)
145
143
  throw new Error(`the DeepBook quote was refused on chain: ${res.error}`);
144
+ // A u64 is exactly eight bytes; any other length is a shape this tool does not read (`u64FromLe` throws).
146
145
  const rowOf = (values) => values !== undefined && values.length >= 3 && values[0] !== undefined && values[1] !== undefined
147
- ? deepbookRowFrom(hop.sellsFirst, readU64(values[0]), readU64(values[1]))
146
+ ? deepbookRowFrom(hop.sellsFirst, u64FromLe(values[0]), u64FromLe(values[1]))
148
147
  : null;
149
- const inputMode = rowOf(res.results?.[0]?.returnValues);
148
+ const inputMode = rowOf(res.results[0]?.returnValues);
150
149
  if (inputMode === null)
151
150
  throw new Error("the DeepBook quote came back in a shape this tool does not read");
152
- const deepMode = deepModeAnswered ? rowOf(res.results?.[1]?.returnValues) : null;
151
+ const deepMode = deepModeAnswered ? rowOf(res.results[1]?.returnValues) : null;
153
152
  return {
154
153
  outUnits: inputMode.outUnits,
155
154
  leftoverInUnits: inputMode.leftoverInUnits,
@@ -0,0 +1,8 @@
1
+ /** The SDK's own cache door — the one method of the Walrus namespace this file needs. */
2
+ export interface ResettableWalrus {
3
+ reset(): void;
4
+ }
5
+ /** The client's Walrus namespace with its caches cleared, so what follows reads the chain. */
6
+ export declare function freshWalrus<W extends ResettableWalrus>(client: {
7
+ walrus: W;
8
+ }): W;
@@ -0,0 +1,15 @@
1
+ // The one door to a Walrus build that depends on a price or on the package address.
2
+ //
3
+ // ⛔ WHY (2026-10-20 · Walrus mainnet). `@mysten/walrus` keeps the system object and state
4
+ // — the storage and write prices, the package id — in each client until `reset()`. A transaction
5
+ // priced from that cache splits the old amount, the contract charges the new one, and
6
+ // `balance::destroy_zero` (price fell) or `balance::split` (price rose) aborts; the server's
7
+ // chain service lost every treasury-paid upload for a week that way. This tool builds a client
8
+ // per command and per signature, so today the reset finds nothing to clear and costs nothing —
9
+ // it is here so that a client kept longer (an MCP session, a held review) still pays today's
10
+ // price. `deploy/check-fresh-walrus.mjs` refuses a builder called any other way.
11
+ /** The client's Walrus namespace with its caches cleared, so what follows reads the chain. */
12
+ export function freshWalrus(client) {
13
+ client.walrus.reset();
14
+ return client.walrus;
15
+ }
@@ -8,7 +8,6 @@
8
8
  // registers the blob and pays the relay's tip out of the treasury; this tool computes the id
9
9
  // locally and hands over the bytes. The one thing it must get right is telling the relay WHICH
10
10
  // transaction paid — see the note on `sendTip` below, which is not what its name suggests.
11
- import { SuiJsonRpcClient } from "@mysten/sui/jsonRpc";
12
11
  import { walrus } from "@mysten/walrus";
13
12
  import { toBase64Url } from "./bytes.js";
14
13
  import { epochClock } from "./expiry.js";
@@ -19,7 +18,7 @@ import { NmtsError } from "./errors.js";
19
18
  import { countingFetch } from "./progress.js";
20
19
  import { reachFetch } from "./reach.js";
21
20
  import { relayHost, storageNodesThrough } from "./walrus.js";
22
- import { suiRpcTransport } from "./sui-rpc.js";
21
+ import { suiClient } from "./sui-rpc.js";
23
22
  /**
24
23
  * How long the relay gets for one blob PUT, sized to the body.
25
24
  *
@@ -44,12 +43,9 @@ export function relayTimeoutMs(bodyBytes) {
44
43
  */
45
44
  const TIP_CEILING_UNUSED_MIST = 1;
46
45
  function extend(network, relayUrl, bodyBytes, onSent) {
47
- const base = new SuiJsonRpcClient({
48
- // ⛔ The network name reaches the SDK as well as the URL. A mirror pointed at the wrong chain
49
- // would otherwise be discovered as a blob the storage nodes refuse, after the money moved.
50
- network: network === "mainnet" ? "mainnet" : "testnet",
51
- transport: suiRpcTransport(network),
52
- });
46
+ // ⛔ The network name reaches the SDK as well as the URL. A node pointed at the wrong chain
47
+ // would otherwise be discovered as a blob the storage nodes refuse, after the money moved.
48
+ const base = suiClient(network === "mainnet" ? "mainnet" : "testnet");
53
49
  return base.$extend(walrus({
54
50
  ...storageNodesThrough(),
55
51
  uploadRelay: {
@@ -133,10 +129,7 @@ export function createBlobProtocol(network, bodyBytes, onSent) {
133
129
  */
134
130
  export async function readCurrentEpoch(network) {
135
131
  try {
136
- const base = new SuiJsonRpcClient({
137
- network: network === "mainnet" ? "mainnet" : "testnet",
138
- transport: suiRpcTransport(network),
139
- }).$extend(walrus(storageNodesThrough()));
132
+ const base = suiClient(network === "mainnet" ? "mainnet" : "testnet").$extend(walrus(storageNodesThrough()));
140
133
  // The epoch lives on the COMMITTEE, not beside it: the system state describes capacity and
141
134
  // the deny lists as well, and only the committee is stamped with which epoch it serves.
142
135
  const state = await base.walrus.systemState();
@@ -164,10 +157,7 @@ export async function readCurrentEpoch(network) {
164
157
  */
165
158
  export async function readEpochWindow(network) {
166
159
  try {
167
- const base = new SuiJsonRpcClient({
168
- network: network === "mainnet" ? "mainnet" : "testnet",
169
- transport: suiRpcTransport(network),
170
- }).$extend(walrus(storageNodesThrough()));
160
+ const base = suiClient(network === "mainnet" ? "mainnet" : "testnet").$extend(walrus(storageNodesThrough()));
171
161
  const [system, staking] = await Promise.all([base.walrus.systemState(), base.walrus.stakingState()]);
172
162
  // Both numbers can arrive as strings — Sui reports 64-bit values that way — so they are
173
163
  // converted here and the constructor below refuses whatever did not survive it.
package/dist/walrus.d.ts CHANGED
@@ -18,20 +18,20 @@ export declare const AGGREGATOR_HOSTS: Readonly<Record<string, readonly string[]
18
18
  */
19
19
  export declare const RELAY_HOSTS: Readonly<Record<string, readonly string[]>>;
20
20
  /**
21
- * Sui JSON-RPC endpoints per network — public mirrors, because the official full nodes retired
22
- * JSON-RPC on both networks (browser measurements 2026-07-29 testnet, 2026-08-03 mainnet).
21
+ * Sui node endpoints per network, spoken to over gRPC-web (`sui-rpc.ts`), first-that-answers.
23
22
  *
24
- * ⛔ READ-ONLY, AND NOT TRUSTED WITH ANYTHING. This tool asks one question here: how many shards
25
- * the storage network currently has, which the erasure coding needs. A wrong answer produces a
26
- * blob id the storage network refuses, so it fails loudly at the relay rather than quietly
27
- * storing something unreadable. No key is ever sent to one of these, and nothing is signed.
23
+ * ⛔ READ-MOSTLY, AND NOT TRUSTED WITH ANYTHING SECRET. Most commands ask one question here — how
24
+ * many shards the storage network has, which the erasure coding needs; the wallet commands also
25
+ * read balances and submit transactions the person signed on this machine. No key is ever sent to
26
+ * one of these. A wrong shard count produces a blob id the storage network refuses, so it fails
27
+ * loudly at the relay rather than quietly storing something unreadable.
28
28
  *
29
- * ⭐ 2026-09-01 — a LIST per network, two operators, first-that-answers. It used to be one host,
30
- * and the testnet one was measured dead that morning: `rpc-testnet.suiscan.xyz` completes the
31
- * TCP handshake in 31 ms and then sends nothing for 12 seconds, three times running. It had
32
- * been that way for eleven days, so every `nmts` command that needed the shard count on testnet
33
- * simply stopped. Each host below answered `sui_getChainIdentifier` with the right value the
34
- * same morning, 8/8 on a burst.
29
+ * ⭐ 2026-10-21 — THE SAME LIST AS THE BROWSER'S, AND A NEW ONE. Sui removed JSON-RPC from its node
30
+ * software in October 2026; the JSON-RPC mirrors this table held were dead (testnet) or about to be
31
+ * (mainnet). Every host below answered chain id, a balance, an object and the gas price over
32
+ * gRPC-web that morning. Two operators per network — Suiscan and Mysten Labs — in the browser's
33
+ * order (`web/src/lib/walrus/network-hosts.ts` says why mainnet keeps Suiscan first). A test
34
+ * and `deploy/check-walrus-hosts.mjs` hold this table to the browser's.
35
35
  */
36
36
  export declare const SUI_RPC_HOSTS: Readonly<Record<string, readonly string[]>>;
37
37
  /** How long one host gets before the next is tried. A read that stalls is a read that failed. */
@@ -47,7 +47,7 @@ export { AGGREGATOR_ENV_VAR, RELAY_ENV_VAR, SUI_RPC_ENV_VAR } from "./env-vars.t
47
47
  */
48
48
  export declare function relayHost(network: string): string;
49
49
  /**
50
- * Every Sui JSON-RPC node this run may ask, in order: the caller's list if it named one, then the
50
+ * Every Sui node this run may ask (it must answer gRPC-web), in order: the caller's list if it named one, then the
51
51
  * environment's, then the network's.
52
52
  *
53
53
  * ⛔ Naming nodes REPLACES the list rather than adding to it — the same rule the aggregator
package/dist/walrus.js CHANGED
@@ -46,24 +46,24 @@ export const RELAY_HOSTS = {
46
46
  mainnet: ["https://upload-relay.mainnet.walrus.space"],
47
47
  };
48
48
  /**
49
- * Sui JSON-RPC endpoints per network — public mirrors, because the official full nodes retired
50
- * JSON-RPC on both networks (browser measurements 2026-07-29 testnet, 2026-08-03 mainnet).
49
+ * Sui node endpoints per network, spoken to over gRPC-web (`sui-rpc.ts`), first-that-answers.
51
50
  *
52
- * ⛔ READ-ONLY, AND NOT TRUSTED WITH ANYTHING. This tool asks one question here: how many shards
53
- * the storage network currently has, which the erasure coding needs. A wrong answer produces a
54
- * blob id the storage network refuses, so it fails loudly at the relay rather than quietly
55
- * storing something unreadable. No key is ever sent to one of these, and nothing is signed.
51
+ * ⛔ READ-MOSTLY, AND NOT TRUSTED WITH ANYTHING SECRET. Most commands ask one question here — how
52
+ * many shards the storage network has, which the erasure coding needs; the wallet commands also
53
+ * read balances and submit transactions the person signed on this machine. No key is ever sent to
54
+ * one of these. A wrong shard count produces a blob id the storage network refuses, so it fails
55
+ * loudly at the relay rather than quietly storing something unreadable.
56
56
  *
57
- * ⭐ 2026-09-01 — a LIST per network, two operators, first-that-answers. It used to be one host,
58
- * and the testnet one was measured dead that morning: `rpc-testnet.suiscan.xyz` completes the
59
- * TCP handshake in 31 ms and then sends nothing for 12 seconds, three times running. It had
60
- * been that way for eleven days, so every `nmts` command that needed the shard count on testnet
61
- * simply stopped. Each host below answered `sui_getChainIdentifier` with the right value the
62
- * same morning, 8/8 on a burst.
57
+ * ⭐ 2026-10-21 — THE SAME LIST AS THE BROWSER'S, AND A NEW ONE. Sui removed JSON-RPC from its node
58
+ * software in October 2026; the JSON-RPC mirrors this table held were dead (testnet) or about to be
59
+ * (mainnet). Every host below answered chain id, a balance, an object and the gas price over
60
+ * gRPC-web that morning. Two operators per network — Suiscan and Mysten Labs — in the browser's
61
+ * order (`web/src/lib/walrus/network-hosts.ts` says why mainnet keeps Suiscan first). A test
62
+ * and `deploy/check-walrus-hosts.mjs` hold this table to the browser's.
63
63
  */
64
64
  export const SUI_RPC_HOSTS = {
65
- testnet: ["https://sui-testnet-rpc.publicnode.com", "https://testnet.suiet.app"],
66
- mainnet: ["https://rpc-mainnet.suiscan.xyz", "https://sui-rpc.publicnode.com"],
65
+ testnet: ["https://fullnode.testnet.sui.io", "https://rpc-testnet.suiscan.xyz"],
66
+ mainnet: ["https://rpc-mainnet.suiscan.xyz", "https://fullnode.mainnet.sui.io"],
67
67
  };
68
68
  /** How long one host gets before the next is tried. A read that stalls is a read that failed. */
69
69
  export const READ_TIMEOUT_MS = 60_000;
@@ -91,7 +91,7 @@ export function relayHost(network) {
91
91
  return known;
92
92
  }
93
93
  /**
94
- * Every Sui JSON-RPC node this run may ask, in order: the caller's list if it named one, then the
94
+ * Every Sui node this run may ask (it must answer gRPC-web), in order: the caller's list if it named one, then the
95
95
  * environment's, then the network's.
96
96
  *
97
97
  * ⛔ Naming nodes REPLACES the list rather than adding to it — the same rule the aggregator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needmoretruth/nmts-cli",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "description": "Command-line and MCP access to NMTS (NeedMoreTruthStorage, https://nmts.me): open-source, end-to-end encrypted storage on the Walrus network. No fee to NMTS; you pay the network from your own wallet. For people and for their agents.",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -143,12 +143,15 @@
143
143
  "dependencies": {
144
144
  "@filoz/synapse-core": "0.9.1",
145
145
  "@filoz/synapse-sdk": "2.0.0",
146
- "@mysten/sui": "^2.20.1",
147
- "@mysten/walrus": "^1.2.3",
146
+ "@mysten/sui": "^2.37.0",
147
+ "@mysten/walrus": "^1.2.36",
148
148
  "@noble/curves": "^2.3.0",
149
149
  "@noble/hashes": "^2.2.0",
150
150
  "uqr": "^0.1.3",
151
151
  "viem": "2.56.8"
152
152
  },
153
- "mcpName": "io.github.needmoretruth/nmts"
153
+ "mcpName": "io.github.needmoretruth/nmts",
154
+ "overrides": {
155
+ "zod": "4.6.6"
156
+ }
154
157
  }
package/server.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "url": "https://github.com/needmoretruth/nmts-cli",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.50.0",
9
+ "version": "0.52.0",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "registryBaseUrl": "https://registry.npmjs.org",
14
14
  "identifier": "@needmoretruth/nmts-cli",
15
- "version": "0.50.0",
15
+ "version": "0.52.0",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },
@@ -624,11 +624,22 @@ export interface InitOutput {
624
624
  readonly streamencryptor_push: (a: number, b: number, c: number) => [number, number, number, number];
625
625
  readonly streamencryptor_resumeFromHeader: (a: number, b: number, c: number, d: number) => [number, number, number];
626
626
  readonly verify_part_set: (a: number, b: number) => [number, number];
627
+ readonly evm_key_for: (a: number, b: number, c: number) => [number, number, number, number];
627
628
  readonly share_address_at: (a: number, b: number, c: number) => [number, number, number, number];
628
629
  readonly share_id_seeds: (a: number, b: number, c: number) => [number, number, number, number];
629
630
  readonly share_public_key_at: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
630
631
  readonly share_unwrap_dek_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => [number, number, number, number];
631
632
  readonly share_wrap_dek_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => [number, number, number, number];
633
+ readonly wallet_seed_for: (a: number, b: number, c: number) => [number, number, number, number];
634
+ readonly account_code_display: (a: number, b: number) => [number, number, number, number];
635
+ readonly account_code_generate: () => [number, number];
636
+ readonly account_code_parse: (a: number, b: number) => [number, number, number, number];
637
+ readonly account_code_phrase: (a: number, b: number, c: number, d: number) => [number, number, number, number];
638
+ readonly link_generate_secret: () => [number, number];
639
+ readonly link_open_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
640
+ readonly link_seal_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
641
+ readonly link_unwrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
642
+ readonly link_wrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
632
643
  readonly opener_locator: (a: number, b: number) => [number, number, number, number];
633
644
  readonly opener_message: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
634
645
  readonly opener_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -637,18 +648,7 @@ export interface InitOutput {
637
648
  readonly passkey_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
638
649
  readonly passkey_prf_salt: () => [number, number];
639
650
  readonly passkey_seal: (a: number, b: number, c: number, d: number) => [number, number, number, number];
640
- readonly link_generate_secret: () => [number, number];
641
- readonly link_open_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
642
- readonly link_seal_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
643
- readonly link_unwrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
644
- readonly link_wrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
645
- readonly account_code_display: (a: number, b: number) => [number, number, number, number];
646
- readonly account_code_generate: () => [number, number];
647
- readonly account_code_parse: (a: number, b: number) => [number, number, number, number];
648
- readonly account_code_phrase: (a: number, b: number, c: number, d: number) => [number, number, number, number];
649
651
  readonly voucher_hash_from_input: (a: number, b: number) => [number, number];
650
- readonly evm_key_for: (a: number, b: number, c: number) => [number, number, number, number];
651
- readonly wallet_seed_for: (a: number, b: number, c: number) => [number, number, number, number];
652
652
  readonly __wbindgen_exn_store: (a: number) => void;
653
653
  readonly __externref_table_alloc: () => number;
654
654
  readonly __wbindgen_externrefs: WebAssembly.Table;
@@ -41,11 +41,22 @@ export const streamencryptor_new: (a: number, b: number, c: number, d: number, e
41
41
  export const streamencryptor_push: (a: number, b: number, c: number) => [number, number, number, number];
42
42
  export const streamencryptor_resumeFromHeader: (a: number, b: number, c: number, d: number) => [number, number, number];
43
43
  export const verify_part_set: (a: number, b: number) => [number, number];
44
+ export const evm_key_for: (a: number, b: number, c: number) => [number, number, number, number];
44
45
  export const share_address_at: (a: number, b: number, c: number) => [number, number, number, number];
45
46
  export const share_id_seeds: (a: number, b: number, c: number) => [number, number, number, number];
46
47
  export const share_public_key_at: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
47
48
  export const share_unwrap_dek_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => [number, number, number, number];
48
49
  export const share_wrap_dek_as: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => [number, number, number, number];
50
+ export const wallet_seed_for: (a: number, b: number, c: number) => [number, number, number, number];
51
+ export const account_code_display: (a: number, b: number) => [number, number, number, number];
52
+ export const account_code_generate: () => [number, number];
53
+ export const account_code_parse: (a: number, b: number) => [number, number, number, number];
54
+ export const account_code_phrase: (a: number, b: number, c: number, d: number) => [number, number, number, number];
55
+ export const link_generate_secret: () => [number, number];
56
+ export const link_open_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
57
+ export const link_seal_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
58
+ export const link_unwrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
59
+ export const link_wrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
49
60
  export const opener_locator: (a: number, b: number) => [number, number, number, number];
50
61
  export const opener_message: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
51
62
  export const opener_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -54,18 +65,7 @@ export const passkey_locator: (a: number, b: number) => [number, number, number,
54
65
  export const passkey_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
55
66
  export const passkey_prf_salt: () => [number, number];
56
67
  export const passkey_seal: (a: number, b: number, c: number, d: number) => [number, number, number, number];
57
- export const link_generate_secret: () => [number, number];
58
- export const link_open_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
59
- export const link_seal_secret: (a: number, b: number, c: number, d: number) => [number, number, number, number];
60
- export const link_unwrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
61
- export const link_wrap_dek: (a: number, b: number, c: number, d: number) => [number, number, number, number];
62
- export const account_code_display: (a: number, b: number) => [number, number, number, number];
63
- export const account_code_generate: () => [number, number];
64
- export const account_code_parse: (a: number, b: number) => [number, number, number, number];
65
- export const account_code_phrase: (a: number, b: number, c: number, d: number) => [number, number, number, number];
66
68
  export const voucher_hash_from_input: (a: number, b: number) => [number, number];
67
- export const evm_key_for: (a: number, b: number, c: number) => [number, number, number, number];
68
- export const wallet_seed_for: (a: number, b: number, c: number) => [number, number, number, number];
69
69
  export const __wbindgen_exn_store: (a: number) => void;
70
70
  export const __externref_table_alloc: () => number;
71
71
  export const __wbindgen_externrefs: WebAssembly.Table;