@needmoretruth/nmts-cli 0.45.0 → 0.47.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.
- package/AGENTS.md +8 -8
- package/CHANGELOG.md +78 -0
- package/README.ko.md +6 -3
- package/README.md +31 -11
- package/dist/api-advice.js +17 -2
- package/dist/api.d.ts +22 -0
- package/dist/api.js +49 -1
- package/dist/arg-options.d.ts +19 -1
- package/dist/args.js +14 -2
- package/dist/artifact-about.d.ts +1 -1
- package/dist/autonomy.js +3 -3
- package/dist/collision.d.ts +20 -3
- package/dist/collision.js +21 -3
- package/dist/commands/erase.js +1 -0
- package/dist/commands/handover.d.ts +15 -0
- package/dist/commands/handover.js +376 -0
- package/dist/commands/heavy-run.d.ts +59 -0
- package/dist/commands/heavy-run.js +247 -0
- package/dist/commands/heavy.d.ts +7 -0
- package/dist/commands/heavy.js +123 -0
- package/dist/commands/link.d.ts +12 -0
- package/dist/commands/link.js +121 -0
- package/dist/commands/ls.d.ts +5 -0
- package/dist/commands/ls.js +9 -1
- package/dist/commands/public-code-manage.d.ts +24 -0
- package/dist/commands/public-code-manage.js +217 -0
- package/dist/commands/public-code.d.ts +12 -1
- package/dist/commands/public-code.js +140 -45
- package/dist/commands/push-heavy.d.ts +6 -0
- package/dist/commands/push-heavy.js +128 -0
- package/dist/commands/push-tree.d.ts +24 -0
- package/dist/commands/push-tree.js +91 -0
- package/dist/commands/push.d.ts +4 -13
- package/dist/commands/push.js +7 -77
- package/dist/commands/put-heavy.d.ts +9 -0
- package/dist/commands/put-heavy.js +120 -0
- package/dist/commands/put-payer.d.ts +21 -0
- package/dist/commands/put-payer.js +24 -0
- package/dist/commands/put.d.ts +2 -2
- package/dist/commands/put.js +8 -7
- package/dist/commands/receive.js +14 -8
- package/dist/commands/s3.js +44 -10
- package/dist/commands/share-dispatch.js +14 -1
- package/dist/commands/share.d.ts +2 -0
- package/dist/commands/share.js +45 -35
- package/dist/commands/shares-sent.js +8 -3
- package/dist/crypto-surface.d.ts +35 -0
- package/dist/crypto-surface.js +13 -0
- package/dist/crypto.d.ts +8 -0
- package/dist/crypto.js +8 -0
- package/dist/download-part.d.ts +32 -1
- package/dist/download-part.js +95 -6
- package/dist/download-range.d.ts +19 -0
- package/dist/download-range.js +108 -0
- package/dist/download-sink.d.ts +15 -0
- package/dist/download.d.ts +14 -0
- package/dist/download.js +19 -4
- package/dist/handover-codes.d.ts +25 -0
- package/dist/handover-codes.js +106 -0
- package/dist/handover.d.ts +62 -0
- package/dist/handover.js +217 -0
- package/dist/heavy-api.d.ts +36 -0
- package/dist/heavy-api.js +107 -0
- package/dist/heavy-copy.d.ts +72 -0
- package/dist/heavy-copy.js +108 -0
- package/dist/heavy-evm.d.ts +20 -0
- package/dist/heavy-evm.js +106 -0
- package/dist/heavy-self-pay.d.ts +92 -0
- package/dist/heavy-self-pay.js +167 -0
- package/dist/heavy-upload.d.ts +87 -0
- package/dist/heavy-upload.js +154 -0
- package/dist/heavy-wallet-pay.d.ts +39 -0
- package/dist/heavy-wallet-pay.js +73 -0
- package/dist/help-options.js +13 -4
- package/dist/help.js +24 -3
- package/dist/links.d.ts +58 -0
- package/dist/links.js +206 -0
- package/dist/list-tier.d.ts +7 -0
- package/dist/list-tier.js +47 -0
- package/dist/main.js +13 -10
- package/dist/manifest-write.d.ts +4 -3
- package/dist/mcp-tools/reads.js +20 -6
- package/dist/mcp-tools/share.js +47 -1
- package/dist/mcp-tools/tiers.js +16 -1
- package/dist/platform-sign.d.ts +4 -4
- package/dist/platform-sign.js +3 -3
- package/dist/portable.d.ts +23 -0
- package/dist/portable.js +19 -0
- package/dist/product.d.ts +1 -1
- package/dist/product.js +1 -1
- package/dist/public-code-activity.d.ts +35 -0
- package/dist/public-code-activity.js +88 -0
- package/dist/public-code-refusals.d.ts +25 -0
- package/dist/public-code-refusals.js +87 -0
- package/dist/public-codes.d.ts +76 -0
- package/dist/public-codes.js +182 -0
- package/dist/recovery-build.js +16 -0
- package/dist/recovery-map-part.d.ts +82 -0
- package/dist/recovery-map-part.js +83 -0
- package/dist/recovery-map.d.ts +5 -40
- package/dist/recovery-map.js +18 -1
- package/dist/recovery-source.d.ts +3 -0
- package/dist/recovery-source.js +9 -0
- package/dist/risk.d.ts +55 -1
- package/dist/risk.js +55 -3
- package/dist/run-log.d.ts +1 -1
- package/dist/run-log.js +7 -1
- package/dist/s3/address.d.ts +20 -0
- package/dist/s3/address.js +97 -0
- package/dist/s3/answer.d.ts +48 -0
- package/dist/s3/answer.js +330 -0
- package/dist/s3/body-deframe.d.ts +49 -0
- package/dist/s3/body-deframe.js +264 -0
- package/dist/s3/body-measure.d.ts +13 -0
- package/dist/s3/body-measure.js +48 -0
- package/dist/s3/body-plan.d.ts +31 -0
- package/dist/s3/body-plan.js +159 -0
- package/dist/s3/body.d.ts +46 -0
- package/dist/s3/body.js +117 -0
- package/dist/s3/call.d.ts +36 -0
- package/dist/s3/call.js +42 -0
- package/dist/s3/checksum.d.ts +26 -0
- package/dist/s3/checksum.js +176 -0
- package/dist/s3/content-type.d.ts +3 -0
- package/dist/s3/content-type.js +49 -0
- package/dist/s3/contract.d.ts +91 -14
- package/dist/s3/drive-conditions.d.ts +47 -0
- package/dist/s3/drive-conditions.js +134 -0
- package/dist/s3/drive-key.d.ts +11 -0
- package/dist/s3/drive-key.js +58 -0
- package/dist/s3/drive-limits.d.ts +33 -0
- package/dist/s3/drive-limits.js +53 -0
- package/dist/s3/drive-lock.d.ts +11 -0
- package/dist/s3/drive-lock.js +47 -0
- package/dist/s3/drive-trashed-name.d.ts +13 -0
- package/dist/s3/drive-trashed-name.js +59 -0
- package/dist/s3/drive-write.d.ts +38 -0
- package/dist/s3/drive-write.js +258 -0
- package/dist/s3/drive.d.ts +59 -25
- package/dist/s3/drive.js +46 -77
- package/dist/s3/listing.d.ts +27 -1
- package/dist/s3/listing.js +62 -20
- package/dist/s3/long-answer.d.ts +12 -0
- package/dist/s3/long-answer.js +104 -0
- package/dist/s3/multipart-assemble.d.ts +17 -0
- package/dist/s3/multipart-assemble.js +68 -0
- package/dist/s3/multipart-sweep.d.ts +15 -0
- package/dist/s3/multipart-sweep.js +87 -0
- package/dist/s3/multipart-view.d.ts +45 -0
- package/dist/s3/multipart-view.js +232 -0
- package/dist/s3/multipart.d.ts +26 -19
- package/dist/s3/multipart.js +193 -78
- package/dist/s3/object-read.d.ts +17 -0
- package/dist/s3/object-read.js +127 -0
- package/dist/s3/object-write.d.ts +35 -0
- package/dist/s3/object-write.js +198 -0
- package/dist/s3/range.d.ts +14 -0
- package/dist/s3/range.js +80 -0
- package/dist/s3/response-sink.d.ts +12 -2
- package/dist/s3/response-sink.js +71 -7
- package/dist/s3/routes.d.ts +0 -1
- package/dist/s3/routes.js +242 -217
- package/dist/s3/same-file.d.ts +4 -1
- package/dist/s3/same-file.js +12 -3
- package/dist/s3/server.d.ts +54 -4
- package/dist/s3/server.js +174 -14
- package/dist/s3/sigv4-canonical.d.ts +91 -0
- package/dist/s3/sigv4-canonical.js +148 -0
- package/dist/s3/sigv4-presigned.d.ts +13 -0
- package/dist/s3/sigv4-presigned.js +82 -0
- package/dist/s3/sigv4.d.ts +26 -27
- package/dist/s3/sigv4.js +137 -102
- package/dist/s3/spool.d.ts +37 -0
- package/dist/s3/spool.js +104 -0
- package/dist/s3/staging.d.ts +90 -7
- package/dist/s3/staging.js +97 -66
- package/dist/s3/xml-multipart.d.ts +38 -0
- package/dist/s3/xml-multipart.js +47 -0
- package/dist/s3/xml-read.d.ts +28 -0
- package/dist/s3/xml-read.js +235 -0
- package/dist/s3/xml.d.ts +45 -2
- package/dist/s3/xml.js +72 -13
- package/dist/s3-gateway.d.ts +11 -5
- package/dist/s3-gateway.js +5 -2
- package/dist/seal.d.ts +1 -1
- package/dist/share-codes.d.ts +40 -0
- package/dist/share-codes.js +151 -0
- package/dist/share.d.ts +39 -0
- package/dist/share.js +54 -13
- package/dist/shared/lib/api/types-heavy.d.ts +167 -0
- package/dist/shared/lib/api/types-heavy.js +60 -0
- package/dist/shared/lib/drive/rebuild-verify.js +1 -0
- package/dist/shared/lib/filecoin/providers.d.ts +25 -0
- package/dist/shared/lib/filecoin/providers.js +58 -0
- package/dist/shared/lib/heavy/download.d.ts +48 -0
- package/dist/shared/lib/heavy/download.js +116 -0
- package/dist/shared/lib/heavy/order-plan.d.ts +77 -0
- package/dist/shared/lib/heavy/order-plan.js +83 -0
- package/dist/shared/lib/heavy/order-runner.d.ts +9 -0
- package/dist/shared/lib/heavy/order-runner.js +300 -0
- package/dist/shared/lib/heavy/order-types.d.ts +90 -0
- package/dist/shared/lib/heavy/order-types.js +6 -0
- package/dist/shared/lib/heavy/order-wire.d.ts +55 -0
- package/dist/shared/lib/heavy/order-wire.js +113 -0
- package/dist/shared/lib/heavy/piece-cid.d.ts +24 -0
- package/dist/shared/lib/heavy/piece-cid.js +55 -0
- package/dist/shared/lib/heavy/sp-upload.d.ts +37 -0
- package/dist/shared/lib/heavy/sp-upload.js +112 -0
- package/dist/shared/lib/heavy/synapse-piece.d.ts +1 -0
- package/dist/shared/lib/heavy/synapse-piece.js +8 -0
- package/dist/shared/lib/share/handover-format.d.ts +129 -0
- package/dist/shared/lib/share/handover-format.js +323 -0
- package/dist/shared/lib/share/public-link.d.ts +41 -0
- package/dist/shared/lib/share/public-link.js +107 -0
- package/dist/shared/lib/share/shared-file-info.js +1 -0
- package/dist/shared/lib/storage-network.d.ts +4 -4
- package/dist/shared/lib/storage-network.js +7 -7
- package/dist/shared/lib/storage-tier.d.ts +28 -0
- package/dist/shared/lib/storage-tier.js +63 -0
- package/dist/shared/lib/wallet/send-rules.js +1 -0
- package/dist/upload-file.d.ts +8 -0
- package/dist/upload-file.js +57 -25
- package/dist/upload-price-node.d.ts +3 -0
- package/dist/upload-price-node.js +3 -6
- package/dist/upload-price.d.ts +10 -0
- package/dist/upload-price.js +13 -1
- package/dist/upload-run.d.ts +80 -0
- package/dist/upload-run.js +173 -0
- package/dist/upload-steps.js +15 -4
- package/dist/upload-store.d.ts +15 -6
- package/dist/upload-store.js +6 -0
- package/dist/upload-wallet-put.d.ts +9 -4
- package/dist/upload-wallet-put.js +16 -6
- package/dist/upload-wallet.js +4 -0
- package/dist/upload-wire.d.ts +25 -0
- package/dist/upload-wire.js +20 -1
- package/dist/upload.js +28 -13
- package/dist/wallet-sign.js +2 -2
- package/docs/commands/handover.md +54 -0
- package/docs/commands/heavy.md +35 -0
- package/docs/commands/link.md +27 -0
- package/docs/commands/mcp.md +2 -1
- package/docs/commands/public-code.md +25 -6
- package/docs/commands/push.md +4 -1
- package/docs/commands/put.md +15 -1
- package/docs/commands/share.md +8 -3
- package/package.json +5 -2
- package/server.json +2 -2
- package/vendor/nmts-crypto/nmts_crypto_wasm.d.ts +106 -4
- package/vendor/nmts-crypto/nmts_crypto_wasm.js +286 -3
- package/vendor/nmts-crypto/nmts_crypto_wasm_bg.wasm +0 -0
- package/vendor/nmts-crypto/nmts_crypto_wasm_bg.wasm.d.ts +12 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# nmts handover — hand one file to one account outside NMTS
|
|
2
|
+
|
|
3
|
+
Commands: handover
|
|
4
|
+
Tiers: handover=none · handover.make=high(share)
|
|
5
|
+
|
|
6
|
+
`handover make <path> --to <public code | public code file>` writes a handover file: one file of
|
|
7
|
+
your drive, sealed so that only the recipient's NMTS key decrypts the file inside it. You pass the
|
|
8
|
+
handover file on yourself — mail, chat, a USB stick. No share is registered, and the recipient's
|
|
9
|
+
side tells the NMTS server nothing about it. `--out <file>` names the handover file (default
|
|
10
|
+
`nmts-handover-<YYYY-MM-DD>.nmtshandover` in the current directory, the date in UTC; it never
|
|
11
|
+
carries the file's own name); `--force` replaces a file that is already there. Both are checked
|
|
12
|
+
before anything else is done. The handover file is written readable by you only (mode 0600).
|
|
13
|
+
|
|
14
|
+
The recipient is either a public code, which is looked up on the server the way `share` looks it
|
|
15
|
+
up — so the server sees whom this account looked up — or the path of their public code file
|
|
16
|
+
(`nmts public-code --save` on their side), which is not looked up at all. A public code file is
|
|
17
|
+
believed only when the identity inside fingerprints to the code it names; that proves the file is
|
|
18
|
+
consistent, not that it came from the recipient, so compare the code it shows with the one they
|
|
19
|
+
gave you.
|
|
20
|
+
|
|
21
|
+
It is sent from your default public code, the lowest-numbered live one, or from the live code
|
|
22
|
+
`--as <n>` names, as for `share`; the recipient sees that code. None of your own codes, live or
|
|
23
|
+
revoked, can be the recipient. When the recipient's public code file names a code its owner has
|
|
24
|
+
revoked, `make` prints `Its owner has revoked this public code. Ask them for the code they use now.`
|
|
25
|
+
and still writes the file, because a revoked code still opens what was sealed to it. A typed code
|
|
26
|
+
that was revoked has no identity left to look up, so it is refused.
|
|
27
|
+
|
|
28
|
+
It gives another account this file, so it sits behind the same unlock as `share` and asks on every
|
|
29
|
+
run: it prints the file, the recipient and the output path and stops until the same command is run
|
|
30
|
+
with `--yes`, in every mode but skip-permissions. The command it prints keeps every option you gave.
|
|
31
|
+
|
|
32
|
+
A handover cannot be taken back. The recipient can download the file until its storage ends or its
|
|
33
|
+
stored bytes are destroyed. Removing the file from your drive (`rm`, `erase`) does not stop it.
|
|
34
|
+
|
|
35
|
+
`handover open <file>` opens a handover file with this account's NMTS key and saves the file it
|
|
36
|
+
carries. Without `--out` it is saved in the current directory under the name the sender gave it,
|
|
37
|
+
reduced to its last segment; `--out <file>` saves it at that path instead, as `receive --out` does.
|
|
38
|
+
It needs the NMTS key and no API key, fetches the pieces straight from Walrus aggregators, checks
|
|
39
|
+
each piece's position against its own header and the whole file against the hash the sender
|
|
40
|
+
sealed; a file that does not match is not written. It refuses a handover file over 1 MiB, a file
|
|
41
|
+
made for another NMTS key, a file whose fields do not hold together, a file from a newer version,
|
|
42
|
+
and a file made on the other network (`--network`).
|
|
43
|
+
|
|
44
|
+
A handover file does not say which of your public codes it was sealed to, so `open` tries them:
|
|
45
|
+
code 0 first; then, when an API key on this machine can read your list of codes, your live codes
|
|
46
|
+
lowest first and your revoked ones newest first; with no key, codes 1, 2, … up to 64. When the code
|
|
47
|
+
that opened it is not code 0 it prints `to #n` and the code, or `received with your revoked public
|
|
48
|
+
code #n` when you have revoked it. When the sender's code is on the revoked list it prints `The
|
|
49
|
+
sender has since revoked this code.` Both revocation checks fetch one sixteenth of the public
|
|
50
|
+
revoked list and compare on this machine, so the server is never asked about one code. Offline,
|
|
51
|
+
they are skipped and the file still opens.
|
|
52
|
+
|
|
53
|
+
Whoever holds a handover file sees the sender's public code in it. The aggregator the recipient
|
|
54
|
+
fetches from sees the recipient's network address, as for any download.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# nmts heavy — the EVM wallet that pays Filecoin yourself
|
|
2
|
+
|
|
3
|
+
Commands: heavy
|
|
4
|
+
Tiers: heavy=none · heavy.fund=high(wallet)
|
|
5
|
+
|
|
6
|
+
NMTS Heavy keeps a file whole in two separate places on Filecoin instead of spreading it across
|
|
7
|
+
Walrus. Most uploads never need this command: `put --tier heavy` and `push --tier heavy` pay with
|
|
8
|
+
credits, or with WAL from the wallet under `--pay wallet`, and NMTS's own Filecoin treasury pays the
|
|
9
|
+
storage. This command is the developer's handle for paying Filecoin directly, as you could with the
|
|
10
|
+
Synapse SDK on your own.
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
nmts heavy wallet # the EVM address this NMTS key derives, its FIL and USDFC, the deposit
|
|
14
|
+
nmts heavy wallet --index 1 # another of this key's EVM wallets
|
|
15
|
+
nmts heavy fund 5 --yes # deposit 5 USDFC into Filecoin Pay for --pay evm uploads
|
|
16
|
+
nmts put report.pdf --tier heavy --pay evm # 2 copies, providers chosen for you
|
|
17
|
+
nmts put report.pdf --tier heavy --pay evm --copies 3 --providers 4,9
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The EVM wallet is derived from the NMTS key (format NCF-3 §1.9), so the recovery tool finds the same
|
|
21
|
+
address (`nmts-recovery --derive`) and can print its private key for an Ethereum-style wallet app
|
|
22
|
+
(`--export-evm-key N`). Its Filecoin address is the same 20 bytes.
|
|
23
|
+
|
|
24
|
+
`heavy wallet` reads only. `heavy fund <USDFC>` signs a deposit into Filecoin Pay and the approval
|
|
25
|
+
for the storage service: it is a wallet act (`nmts unlock wallet`), prints what it will do, and signs
|
|
26
|
+
only with `--yes`. When the deposit already covers the amount it signs nothing.
|
|
27
|
+
|
|
28
|
+
`--pay evm` uploads pay the storage providers from that deposit. The file stays as long as the
|
|
29
|
+
deposit lasts (`heavy wallet` shows the epoch it lasts to); add more with `heavy fund` before then.
|
|
30
|
+
`--copies` takes 1 to 12 (default 2), `--providers` names provider ids, and `--evm-wallet N` pays
|
|
31
|
+
from another derived wallet. On a network whose storage providers this version does not list, it
|
|
32
|
+
is refused before anything is spent.
|
|
33
|
+
|
|
34
|
+
You need FIL for gas and USDFC in the EVM wallet before `heavy fund`. On the Calibration test
|
|
35
|
+
network both come from the public faucets; on mainnet, from an exchange or a swap.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# nmts link — public links to one file
|
|
2
|
+
|
|
3
|
+
Commands: link
|
|
4
|
+
Tiers: link=none · link.make=high(share) · link.revoke=low
|
|
5
|
+
|
|
6
|
+
`link make <path>` makes a public link to one file of your drive and prints it:
|
|
7
|
+
`https://nmts.me/l/<token>#<secret>`. Anyone with the link can open this file. Cutting the link stops
|
|
8
|
+
new downloads, but copies already downloaded stay with whoever has them. `--hide-name` leaves the
|
|
9
|
+
file's name out; its size stays, because the size is what takes size padding back off.
|
|
10
|
+
`--expires <n>d` stops the link after that many days (1d to 3650d); without it the link lasts until
|
|
11
|
+
it is cut. The secret after `#` is made here and is in no request: the server stores the file key
|
|
12
|
+
wrapped under it, the name document and the content hash sealed under the file key, and a copy of
|
|
13
|
+
the secret sealed under this account's key so the link can be printed again. It gives the file to
|
|
14
|
+
whoever holds the link, so it sits behind the same unlock as `share` and asks on every run.
|
|
15
|
+
|
|
16
|
+
`link list <path>` prints every link made to that file, newest first, with when it was made and how
|
|
17
|
+
many times it was downloaded; a live link is printed whole again, a cut one says when and by whom
|
|
18
|
+
(`owner`, `operator`, `report`).
|
|
19
|
+
|
|
20
|
+
`link revoke <id>` cuts one link. The server stops handing out the file's pieces for it at once.
|
|
21
|
+
|
|
22
|
+
`link open <link>` downloads and decrypts a file from a public link, without logging in. It asks
|
|
23
|
+
the server for the token only, opens the file key with the secret, fetches the pieces from Walrus
|
|
24
|
+
and checks the whole file against the hash the owner sealed; a file that does not match is not
|
|
25
|
+
written. Without `--out` the file is saved in the current directory under the name the owner
|
|
26
|
+
showed, reduced to its last segment, or `nmts-link-<token>` when the name was hidden; `--force`
|
|
27
|
+
replaces a file that is already there. A cut, expired or unknown link is refused.
|
package/docs/commands/mcp.md
CHANGED
|
@@ -13,7 +13,8 @@ MCP elicitation — or refused, naming the way round it, when the client cannot
|
|
|
13
13
|
The tools: `nmts_whoami` `nmts_list` `nmts_usage` `nmts_expiring` `nmts_balance` `nmts_shares`
|
|
14
14
|
`nmts_shares_sent` · `nmts_wallet_activity` `nmts_wallet_storage` · `nmts_devices` · `nmts_notices`
|
|
15
15
|
`nmts_notice` `nmts_terms` `nmts_privacy` · `nmts_losses` `nmts_loss_recheck` · `nmts_get`
|
|
16
|
-
`nmts_pull` `nmts_receive` · `nmts_put` `nmts_push` `nmts_padding` `nmts_deposit` · `nmts_public_code`
|
|
16
|
+
`nmts_pull` `nmts_receive` · `nmts_put` `nmts_push` `nmts_padding` `nmts_deposit` · `nmts_public_code`
|
|
17
|
+
`nmts_public_code_new` `nmts_public_code_revoke` ·
|
|
17
18
|
`nmts_mkdir` `nmts_move` `nmts_rename` `nmts_mark` `nmts_label_rename` `nmts_unlabel_all`
|
|
18
19
|
`nmts_trash` `nmts_restore` · `nmts_credits_transfer` · `nmts_share` `nmts_unshare` · `nmts_support_send`
|
|
19
20
|
`nmts_support_list` `nmts_support_show` `nmts_support_reply`.
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
# nmts public-code — the
|
|
1
|
+
# nmts public-code — the codes other accounts send files to
|
|
2
2
|
|
|
3
3
|
Commands: public-code
|
|
4
|
-
Tiers: public-code=none · public-code.publish=medium
|
|
4
|
+
Tiers: public-code=none · public-code.list=none · public-code.publish=medium · public-code.new=medium · public-code.revoke=high
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
An unpublished code cannot receive anything
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
`public-code` prints the account's default public code — its lowest-numbered live one — and whether
|
|
7
|
+
it has been published. It is not the NMTS key. An unpublished code cannot receive anything, and
|
|
8
|
+
publishing is a public act, so it is `--publish` and not automatic: in the default mode it asks
|
|
9
|
+
first (or takes `--yes`); in an auto mode it is your judgement, and one to put to the person.
|
|
10
|
+
|
|
11
|
+
Every code comes from the one NMTS key, at a number: 0, 1, 2, … An account holds one to three live
|
|
12
|
+
codes (a Platform user exactly one). `public-code list` shows every code, live and revoked, with how
|
|
13
|
+
many shares and messages went through it; `--activity` lists the shares. `public-code new` publishes
|
|
14
|
+
the next number; `--replace <n>` revokes that code in the same request. `public-code revoke <n>`
|
|
15
|
+
revokes one: nobody can send to it again, nobody can bring it back, and files already received with
|
|
16
|
+
it stay. The last live code cannot be revoked. Revoking, by either command, asks every time and
|
|
17
|
+
needs `--yes` where nobody can answer. The server caps how many codes an account makes per UTC day;
|
|
18
|
+
`list` prints the cap and how many were made today.
|
|
19
|
+
|
|
20
|
+
`--save [file]` writes the public code file of your default code: the public code and the
|
|
21
|
+
identity behind it, nothing secret. When an API key on this machine can read your list of codes,
|
|
22
|
+
the default is the lowest-numbered live one; with no key it is code 0, the code every NMTS key
|
|
23
|
+
starts with. `--save --as <n>` writes the file of code n instead and asks the server nothing.
|
|
24
|
+
Without a file name it writes `nmts-public-code-<public code>.nmtscode` in the current directory.
|
|
25
|
+
It needs the NMTS key. Whoever has the file can make
|
|
26
|
+
a handover file for you (`nmts handover make … --to <file>`) without looking your code up, so NMTS
|
|
27
|
+
does not learn who is sending to you. `--force` replaces a file that is already there. It is not
|
|
28
|
+
combined with `--publish`.
|
package/docs/commands/push.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# nmts push — upload a whole directory
|
|
2
2
|
|
|
3
3
|
Commands: push
|
|
4
|
-
Tiers: push=medium · push.wallet=high(wallet)
|
|
4
|
+
Tiers: push=medium · push.wallet=high(wallet) · push.evm=high(wallet)
|
|
5
5
|
|
|
6
6
|
Uploads a directory, rebuilding its shape in the account, and spends credits the way `put` does
|
|
7
7
|
(`nmts help put`). It stops at the first failure, saying what is already uploaded; running it again
|
|
@@ -10,3 +10,6 @@ without `--hidden`, and symbolic links are not followed. `--to` names the destin
|
|
|
10
10
|
`--dry-run` prices the whole run and sends nothing.
|
|
11
11
|
|
|
12
12
|
`--pay wallet` does what it does for `put`, one file at a time, under the same standing unlock.
|
|
13
|
+
|
|
14
|
+
`--tier heavy` stores every file of the run on NMTS Heavy, paid the way `put --tier heavy` is
|
|
15
|
+
(`nmts help put`), and `--tier heavy --pay evm` pays Filecoin yourself (`nmts help heavy`).
|
package/docs/commands/put.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# nmts put — encrypt one file and upload it
|
|
2
2
|
|
|
3
3
|
Commands: put
|
|
4
|
-
Tiers: put=medium · put.wallet=high(wallet)
|
|
4
|
+
Tiers: put=medium · put.wallet=high(wallet) · put.evm=high(wallet)
|
|
5
5
|
|
|
6
6
|
`put` spends credits: one per started mebibyte, and the price is printed before the upload
|
|
7
7
|
starts. In the default mode it asks first (answer at the terminal, or run with `--yes`);
|
|
@@ -35,6 +35,20 @@ cuts it to size and leaves the rest free, `whole` binds all of it with the file.
|
|
|
35
35
|
`--storage` for the person: the leftover is their decision. `--epochs` and `--storage` without
|
|
36
36
|
`--pay wallet` exit 2.
|
|
37
37
|
|
|
38
|
+
**`--tier heavy`** stores the file on NMTS Heavy instead of NMTS Standard: each part is kept whole in
|
|
39
|
+
two separate places on Filecoin rather than spread across Walrus storage nodes. It is paid the same
|
|
40
|
+
two ways. With credits (the default) each part costs half the Standard credits, rounded up and at
|
|
41
|
+
least one, and the file is kept 28 days. With
|
|
42
|
+
`--pay wallet` the WAL price is set when the upload opens, the wallet is checked for it before
|
|
43
|
+
anything is encrypted, and it is paid once, after the file is stored; `--days N` (1–365, default 28)
|
|
44
|
+
is the term. Parts are 512 MiB, and `--part-size`, `--epochs`, `--storage`, `--from`, `--deposit` and
|
|
45
|
+
`--thumbnail` do not apply.
|
|
46
|
+
`get`, `ls` and deletion work the same for both tiers; `nmts ls --long` shows each file's tier. The
|
|
47
|
+
default is `--tier standard`. A Heavy run that stops is not resumed: running it again is a new upload.
|
|
48
|
+
|
|
49
|
+
**`--tier heavy --pay evm`** pays Filecoin yourself from the EVM wallet the NMTS key derives, out of
|
|
50
|
+
its Filecoin Pay deposit, with `--copies` and `--providers` choosing where. See `nmts help heavy`.
|
|
51
|
+
|
|
38
52
|
**`--thumbnail`** on a video also sends one frame of it as `<saved name>.thumb.jpg`: an ordinary
|
|
39
53
|
small file, priced, sealed and paid for like any other, linked to the video so every app shows it
|
|
40
54
|
as the video's tile. The frame is taken by `ffmpeg` (one second in, 512 px on the long side);
|
package/docs/commands/share.md
CHANGED
|
@@ -8,8 +8,13 @@ download it; withdrawing later stops further downloads and cannot recall a copy
|
|
|
8
8
|
and the code is not checked against a person — the wrong code sends the file to whoever holds it.
|
|
9
9
|
So it is locked until a person runs `nmts unlock share` once, and then asks on every run: it prints
|
|
10
10
|
the file and the code and stops until the same command is run with `--yes`, in every mode but
|
|
11
|
-
skip-permissions. Sharing is also on the short list the periodic human check gates.
|
|
11
|
+
skip-permissions. Sharing is also on the short list the periodic human check gates. It sends from
|
|
12
|
+
the account's lowest-numbered live public code, or from the one `--as <n>` names; an account with
|
|
13
|
+
no live code publishes one first.
|
|
12
14
|
|
|
13
|
-
`shares` lists what was shared with this account
|
|
14
|
-
|
|
15
|
+
`shares` lists what was shared with this account, with the code each share came to once more than
|
|
16
|
+
one code has received, and a mark where the sender has revoked theirs; `shares --sent <path>` says
|
|
17
|
+
who one file was shared with. `receive <id>` downloads one shared file (`--out`, `--force` as for `get`); without
|
|
18
|
+
`--out` it is saved in the current directory under the name the sender gave it, reduced to its last
|
|
19
|
+
segment, so a name such as `../x` or an absolute path cannot place it anywhere else. `unshare
|
|
15
20
|
<id>` withdraws a share you sent, or removes one you were sent; in the default mode it asks once.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needmoretruth/nmts-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.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": {
|
|
@@ -141,11 +141,14 @@
|
|
|
141
141
|
"typescript": "^5.9.3"
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
|
+
"@filoz/synapse-core": "0.9.1",
|
|
145
|
+
"@filoz/synapse-sdk": "2.0.0",
|
|
144
146
|
"@mysten/sui": "^2.20.1",
|
|
145
147
|
"@mysten/walrus": "^1.2.3",
|
|
146
148
|
"@noble/curves": "^2.3.0",
|
|
147
149
|
"@noble/hashes": "^2.2.0",
|
|
148
|
-
"uqr": "^0.1.3"
|
|
150
|
+
"uqr": "^0.1.3",
|
|
151
|
+
"viem": "2.56.8"
|
|
149
152
|
},
|
|
150
153
|
"mcpName": "io.github.needmoretruth/nmts"
|
|
151
154
|
}
|
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.
|
|
9
|
+
"version": "0.47.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.
|
|
15
|
+
"version": "0.47.0",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -197,6 +197,21 @@ export function envelope_open(key: Uint8Array, aad: Uint8Array, envelope: Uint8A
|
|
|
197
197
|
*/
|
|
198
198
|
export function envelope_seal(key: Uint8Array, aad: Uint8Array, plaintext: Uint8Array): Uint8Array;
|
|
199
199
|
|
|
200
|
+
/**
|
|
201
|
+
* The secp256k1 private key (32 bytes, big-endian) of EVM wallet number `index` from the 32-byte
|
|
202
|
+
* `wallet_root` (NCF-3 §1.9) — the key that pays for NMTS Heavy on Filecoin when a person pays
|
|
203
|
+
* from their own EVM wallet.
|
|
204
|
+
*
|
|
205
|
+
* ⛔ Like `wallet_seed_for`, this hands back key material. It is called in-process by the crypto
|
|
206
|
+
* worker and by the command-line tool; no page-facing RPC returns it.
|
|
207
|
+
*
|
|
208
|
+
* ⚠ The ADDRESS is deliberately not exported. Computing it needs the curve's point arithmetic,
|
|
209
|
+
* which added 63 KB to a package every visitor downloads (measured 2026-09-24: 539,169 → 602,131
|
|
210
|
+
* bytes; the key alone is 545,370) for a value no browser screen shows. The command-line tool and
|
|
211
|
+
* the recovery tool compute the address themselves.
|
|
212
|
+
*/
|
|
213
|
+
export function evm_key_for(wallet_root: Uint8Array, index: number): Uint8Array;
|
|
214
|
+
|
|
200
215
|
/**
|
|
201
216
|
* A fresh random 32-byte file DEK (WebCrypto-backed).
|
|
202
217
|
*/
|
|
@@ -231,7 +246,7 @@ export function header_plaintext_len(header: Uint8Array): number;
|
|
|
231
246
|
/**
|
|
232
247
|
* Derives the account keys from the 20 raw account-code bytes (NCF-3 §1).
|
|
233
248
|
*
|
|
234
|
-
* Returns one concatenated buffer (`KDF_DERIVE_LEN` =
|
|
249
|
+
* Returns one concatenated buffer (`KDF_DERIVE_LEN` = 320 bytes) the caller slices:
|
|
235
250
|
* ```text
|
|
236
251
|
* 0.. 16 account_id public — the server's lookup key
|
|
237
252
|
* 16.. 48 auth_secret secret — sent to the server over TLS at login
|
|
@@ -243,12 +258,13 @@ export function header_plaintext_len(header: Uint8Array): number;
|
|
|
243
258
|
* 208..224 share_address public — the address a user hands out to be shared with
|
|
244
259
|
* 224..256 share_sig_seed secret — ML-DSA-44 seed; its key IS the identity root (§5.2a)
|
|
245
260
|
* 256..288 ai_account_root secret — parent of every AI-account code (§1.5, the product rule of 2026-09-06)
|
|
261
|
+
* 288..320 share_id_root secret — parent of share identities 1 and up (§5.9, 2026-09-23)
|
|
246
262
|
* ```
|
|
247
263
|
* Every secret region above must be retained inside the crypto worker and never cross the
|
|
248
264
|
* postMessage boundary.
|
|
249
265
|
*
|
|
250
|
-
* ⚠ **This layout only ever grows at the TAIL
|
|
251
|
-
* under
|
|
266
|
+
* ⚠ **This layout only ever grows at the TAIL**: `ai_account_root` was appended on 2026-09-06 and
|
|
267
|
+
* `share_id_root` on 2026-09-23 under that rule. `share_sig_seed` was appended in 2026-08-02
|
|
252
268
|
* rather than filed beside the other two share secrets, where it would read better, because
|
|
253
269
|
* inserting it there would shift `wallet_root` and `share_address` and every constant on the
|
|
254
270
|
* JS side would be silently wrong about which 32 bytes it was holding. Readability loses to
|
|
@@ -260,6 +276,33 @@ export function header_plaintext_len(header: Uint8Array): number;
|
|
|
260
276
|
*/
|
|
261
277
|
export function kdf_derive(code_bytes: Uint8Array): Uint8Array;
|
|
262
278
|
|
|
279
|
+
/**
|
|
280
|
+
* A fresh 32-byte link secret `S`, drawn inside Rust from WebCrypto. One per link.
|
|
281
|
+
*/
|
|
282
|
+
export function link_generate_secret(): Uint8Array;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Opens a link secret sealed by `link_seal_secret`, returning the 32-byte `S`.
|
|
286
|
+
*/
|
|
287
|
+
export function link_open_secret(data_key: Uint8Array, sealed: Uint8Array): Uint8Array;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Seals a link secret under the uploader's dataKey: `E(dataKey, "nmts/v3/link-secret", S)`,
|
|
291
|
+
* 104 bytes. Stored beside the link so the uploader can copy the same link again later.
|
|
292
|
+
*/
|
|
293
|
+
export function link_seal_secret(data_key: Uint8Array, link_secret: Uint8Array): Uint8Array;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Opens a link's wrapped DEK with the secret from the fragment, returning the 32-byte DEK.
|
|
297
|
+
*/
|
|
298
|
+
export function link_unwrap_dek(link_secret: Uint8Array, wrapped: Uint8Array): Uint8Array;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Wraps a file DEK under a link secret: `E(S, "nmts/v3/link-wrap", DEK)`, 104 bytes. The server
|
|
302
|
+
* stores the result beside the link's token.
|
|
303
|
+
*/
|
|
304
|
+
export function link_wrap_dek(link_secret: Uint8Array, dek: Uint8Array): Uint8Array;
|
|
305
|
+
|
|
263
306
|
/**
|
|
264
307
|
* The 16-byte LOCATOR a wallet signature yields — the name the server files this opener's slot
|
|
265
308
|
* under, and the name a sign-in asks for it back by (NCF-3 §1.7).
|
|
@@ -352,6 +395,12 @@ export function recovery_patch_name(data_key: Uint8Array): string;
|
|
|
352
395
|
*/
|
|
353
396
|
export function sha256(data: Uint8Array): Uint8Array;
|
|
354
397
|
|
|
398
|
+
/**
|
|
399
|
+
* The 16-byte share ADDRESS of identity number `index`, from its signing seed alone — no
|
|
400
|
+
* signature is made to answer it. At index 0 it is `kdf_derive`'s `share_address` (208..224).
|
|
401
|
+
*/
|
|
402
|
+
export function share_address_at(share_sig_seed: Uint8Array, index: number): Uint8Array;
|
|
403
|
+
|
|
355
404
|
/**
|
|
356
405
|
* The display form of a share address (`kdf_derive` bytes 208..224):
|
|
357
406
|
* `XXXXXXXXX-XXXXXXXXX-XXXXXXXXC` — Crockford Base32 with a trailing check symbol.
|
|
@@ -387,6 +436,19 @@ export function share_address_parse(input: string): Uint8Array;
|
|
|
387
436
|
*/
|
|
388
437
|
export function share_claimed_sender(envelope: Uint8Array): Uint8Array;
|
|
389
438
|
|
|
439
|
+
/**
|
|
440
|
+
* The three secret seeds of share identity number `index` (1-based) from the 32-byte
|
|
441
|
+
* `share_id_root` at `kdf_derive` bytes 288..320: `kem(32) || auth(32) || sig(32)`, 96 bytes.
|
|
442
|
+
*
|
|
443
|
+
* ⛔ It takes the ROOT rather than the account code for the reason `wallet_seed_for` does: the
|
|
444
|
+
* browser derives once at sign-in and keeps only the roots, and a person makes a new public code
|
|
445
|
+
* whenever they like. Holding the root grants identities 1 and up and nothing else.
|
|
446
|
+
*
|
|
447
|
+
* Rejects `index` 0. All 96 bytes are secret and stay inside the crypto worker, like the
|
|
448
|
+
* `kdf_derive` regions they sit beside.
|
|
449
|
+
*/
|
|
450
|
+
export function share_id_seeds(share_id_root: Uint8Array, index: number): Uint8Array;
|
|
451
|
+
|
|
390
452
|
/**
|
|
391
453
|
* The 4989-byte PUBLIC share identity, built from the three secrets at `kdf_derive` bytes
|
|
392
454
|
* 112..176 and 224..256 (KEM seed, auth secret, signing seed).
|
|
@@ -402,6 +464,15 @@ export function share_claimed_sender(envelope: Uint8Array): Uint8Array;
|
|
|
402
464
|
*/
|
|
403
465
|
export function share_public_key(share_kem_seed: Uint8Array, share_auth_secret: Uint8Array, share_sig_seed: Uint8Array): Uint8Array;
|
|
404
466
|
|
|
467
|
+
/**
|
|
468
|
+
* The 4989-byte PUBLIC share identity number `index`: the bundle `share_public_key` builds, with
|
|
469
|
+
* `derivation_index = index`. At index 0 it is `share_public_key`, byte for byte.
|
|
470
|
+
*
|
|
471
|
+
* The number is inside the root, so each number has its own address; the self-signature covers
|
|
472
|
+
* it, so a numbered bundle is verified by exactly the steps any bundle is.
|
|
473
|
+
*/
|
|
474
|
+
export function share_public_key_at(share_kem_seed: Uint8Array, share_auth_secret: Uint8Array, share_sig_seed: Uint8Array, index: number): Uint8Array;
|
|
475
|
+
|
|
405
476
|
/**
|
|
406
477
|
* Unwraps a share envelope addressed to us, returning the 32-byte file DEK.
|
|
407
478
|
*
|
|
@@ -412,6 +483,15 @@ export function share_public_key(share_kem_seed: Uint8Array, share_auth_secret:
|
|
|
412
483
|
*/
|
|
413
484
|
export function share_unwrap_dek(share_kem_seed: Uint8Array, share_auth_secret: Uint8Array, share_sig_seed: Uint8Array, sender_public: Uint8Array, envelope: Uint8Array, item_id: string, name_share_ct: Uint8Array, content_hash_share_ct: Uint8Array): Uint8Array;
|
|
414
485
|
|
|
486
|
+
/**
|
|
487
|
+
* `share_unwrap_dek` as identity number `index`, returning the 32-byte file DEK.
|
|
488
|
+
*
|
|
489
|
+
* An envelope does not name its recipient, so the caller picks the number — the inbox knows
|
|
490
|
+
* which address a share was stored against. Opened as the wrong number it fails with the same
|
|
491
|
+
* message as an envelope meant for somebody else, a forged sender or a rewritten row.
|
|
492
|
+
*/
|
|
493
|
+
export function share_unwrap_dek_as(share_kem_seed: Uint8Array, share_auth_secret: Uint8Array, share_sig_seed: Uint8Array, index: number, sender_public: Uint8Array, envelope: Uint8Array, item_id: string, name_share_ct: Uint8Array, content_hash_share_ct: Uint8Array): Uint8Array;
|
|
494
|
+
|
|
415
495
|
/**
|
|
416
496
|
* Wraps a file DEK for ONE recipient, given the public key the server returned AND the address
|
|
417
497
|
* the sender was actually given.
|
|
@@ -434,6 +514,17 @@ export function share_unwrap_dek(share_kem_seed: Uint8Array, share_auth_secret:
|
|
|
434
514
|
*/
|
|
435
515
|
export function share_wrap_dek(sender_auth_secret: Uint8Array, sender_sig_seed: Uint8Array, recipient_public: Uint8Array, recipient_address: Uint8Array, dek: Uint8Array, item_id: string, name_share_ct: Uint8Array, content_hash_share_ct: Uint8Array): Uint8Array;
|
|
436
516
|
|
|
517
|
+
/**
|
|
518
|
+
* `share_wrap_dek` sending AS identity number `sender_index`: the two sender secrets are that
|
|
519
|
+
* identity's, and the envelope's sender address is that identity's address.
|
|
520
|
+
*
|
|
521
|
+
* Every other argument and every check is `share_wrap_dek`'s — the recipient key is checked
|
|
522
|
+
* against `recipient_address` before anything is encrypted to it, the last three arguments are
|
|
523
|
+
* the row the envelope is bound to, and fresh randomness is drawn per call. Returns the 1240-byte
|
|
524
|
+
* share envelope.
|
|
525
|
+
*/
|
|
526
|
+
export function share_wrap_dek_as(sender_auth_secret: Uint8Array, sender_sig_seed: Uint8Array, sender_index: number, recipient_public: Uint8Array, recipient_address: Uint8Array, dek: Uint8Array, item_id: string, name_share_ct: Uint8Array, content_hash_share_ct: Uint8Array): Uint8Array;
|
|
527
|
+
|
|
437
528
|
/**
|
|
438
529
|
* Decrypts a whole NCF-3 stream under the file DEK, verifying framing/anti-tamper.
|
|
439
530
|
*/
|
|
@@ -533,7 +624,11 @@ export interface InitOutput {
|
|
|
533
624
|
readonly streamencryptor_push: (a: number, b: number, c: number) => [number, number, number, number];
|
|
534
625
|
readonly streamencryptor_resumeFromHeader: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
535
626
|
readonly verify_part_set: (a: number, b: number) => [number, number];
|
|
536
|
-
readonly
|
|
627
|
+
readonly share_address_at: (a: number, b: number, c: number) => [number, number, number, number];
|
|
628
|
+
readonly share_id_seeds: (a: number, b: number, c: number) => [number, number, number, number];
|
|
629
|
+
readonly share_public_key_at: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
630
|
+
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
|
+
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];
|
|
537
632
|
readonly opener_locator: (a: number, b: number) => [number, number, number, number];
|
|
538
633
|
readonly opener_message: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
539
634
|
readonly opener_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
@@ -542,11 +637,18 @@ export interface InitOutput {
|
|
|
542
637
|
readonly passkey_open: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
543
638
|
readonly passkey_prf_salt: () => [number, number];
|
|
544
639
|
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];
|
|
545
645
|
readonly account_code_display: (a: number, b: number) => [number, number, number, number];
|
|
546
646
|
readonly account_code_generate: () => [number, number];
|
|
547
647
|
readonly account_code_parse: (a: number, b: number) => [number, number, number, number];
|
|
548
648
|
readonly account_code_phrase: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
549
649
|
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];
|
|
550
652
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
551
653
|
readonly __externref_table_alloc: () => number;
|
|
552
654
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|