The TensorChain wallet #
The TensorChain wallet is the TC Verify browser extension (Chrome and Firefox): open it from the toolbar, or keep it beside the page in the side panel. It is a Sui wallet with one addition no other wallet has: you can join an AI network from it. You see exactly what an agent on your device will be allowed to do (which folders, which tools, what budget, whether its work may be used for training), accept, and then every action it takes is signed by your wallet and shows up as a receipt.
Today it runs on Sui testnet. The wallet is built for production: the chain network comes from one network profile (local, testnet, mainnet), and mainnet is switched on only after its checklist is complete. TNZR, the prepaid unit for data and compute, is not for sale.
| Part | What it does | Status |
|---|---|---|
| Key custody | makes your key, keeps it encrypted, unlocks and locks it, signs | built and tested |
| The Sui wallet | the panel at the top right; SUI, TNZR and your objects; any Sui app can connect | built and tested |
| The lock-down | spend limits, approved sites, a confirm for a first send to someone new, lock when the last window closes | built and tested |
| Team trees and names | sign in to a team's folder with your wallet; claim a #username others can send to | built and tested |
| Send an app screen | send a small, checked app screen and get the answer back, both signed | built and tested |
| The Pass SDK core | every send as one signed envelope, the same bytes in the browser, Python and on servers (the SDK) | built and tested |
| Swap and send | swap SUI for TNZR through the reserve vault at its fixed rate, with its proof of reserves shown before you sign; send SUI or TNZR to a #name or an address | built and tested |
| Inbox | passes waiting for you, with Accept, Refuse and Try; send a pass of any kind | built and tested |
| Camera filters | try a filter someone sent you, on your camera, inside the wallet (make one) | built and tested |
| Train | start a fine-tuning job with a bid from the wallet | in progress |
| The two switches | render speed (finish soonest, up to your cap) and sata share (your idle GPU earns in the pool) | planned |
Instructions #
Create your wallet #
- Choose a passphrase of at least 8 characters. It unlocks the wallet on this device only.
- The wallet makes a new key and shows you a 12-word recovery phrase, once.
- Write it down on paper and store it offline, where only you can reach it.
- It is the only way to recover the wallet on another device, and anyone who has it controls the wallet.
- TensorChain never sees it and cannot recover it for you.
- Your Sui address is shown. It is public, and you can share it.
Unlock and lock #
- Unlock with your passphrase. The key stays unlocked in the extension's memory only. It is never written to disk unencrypted, and never sent anywhere.
- Locking: the wallet locks itself after 15 minutes with no use, or when you lock it.
- Wrong passphrases: after 5 in a row, the wallet waits 30 seconds before it accepts another try.
Restore on another device #
Enter your 12-word phrase and a new passphrase for that device. You get the same address, the one any Sui wallet or the Sui CLI derives from that phrase.
The panel #
Click the extension's icon (top right), then Wallet.
- Shown: your address, your SUI and TNZR balances, and the objects your account holds, named in plain words: agent capabilities, credits, pool devices, locked TNZR, upgrade capabilities. Anything else shows its type.
- This site: the extension's site check, with the TC Verified mark, works as before.
When an app asks #
Every connection and every signature opens a small TensorChain window first. It shows which site is asking and exactly what:
- for a connection, the address it will see;
- for a message, the message text;
- for a transaction, the sender, the gas budget and the commands.
Nothing is signed until you press Approve, and closing the window rejects the request. If the wallet is locked, the same window asks for your passphrase first.
For app developers: connect to the TensorChain wallet (TW1) #
The wallet registers itself through the Sui Wallet Standard under the name TensorChain. Any app that lists Sui wallets (for example with @mysten/dapp-kit) finds it next to the others.
| Chain | sui:testnet only. A request naming any other chain is refused chain_not_allowed before anything is shown. |
| Features | standard:connect, standard:disconnect, standard:events, sui:signPersonalMessage, sui:signTransaction |
| Approval | every connect and every signature waits for the person's approval in the wallet's own window; a rejection is the error rejected |
| Transactions | send a fully resolved transaction (sender, gas price, budget and payment, object references). The wallet signs; executing is the app's job. An unresolved one is refused transaction_unresolved. |
| Other refusals | not_connected (connect first), wrong_account, no_wallet (the person has not created one yet) |
import { getWallets } from "@mysten/wallet-standard";
const tc = getWallets().get().find((w) => w.name === "TensorChain");
const { accounts } = await tc.features["standard:connect"].connect(); // the person approves
const { bytes, signature } = await tc.features["sui:signPersonalMessage"].signPersonalMessage({
message: new TextEncoder().encode("hello"), account: accounts[0] }); // the person approves again
The signatures are Sui's own format, and verify with @mysten/sui/verify.
For developers: the custody SDK (TW0) #
extension/wallet/vault.js is one ES module with no network code. Storage and the clock are passed in, so the same code runs in the extension (with chrome.storage.local) and under Node.
import { sui } from "./sui.bundle.js"; // Mysten's Sui SDK, bundled locally and pinned (vendor.lock.json)
import { createVault } from "./vault.js";
const vault = createVault({ sui, storage, idleMs: 15 * 60 * 1000 });
const { address, phrase } = await vault.create(passphrase); // show `phrase` once, then drop it
await vault.unlock(passphrase); // -> the address
const { bytes, signature } = await vault.signPersonalMessage(new TextEncoder().encode("hello"));
vault.lock();
| Call | Returns | Refusals (VaultError.code) |
|---|---|---|
create(passphrase) | {address, phrase} | vault_exists, weak_passphrase |
restore(phrase, passphrase) | the address | vault_exists, bad_phrase, weak_passphrase |
unlock(passphrase) | the address | no_vault, wrong_passphrase, locked_out, vault_corrupt |
signPersonalMessage(bytes) | {bytes, signature}, in Sui's own format | locked |
isUnlocked(), lock(), address(), exists() |
What is stored: {format, address, salt, iv, iterations, ciphertext}, and nothing else.
- The recovery phrase is encrypted with AES-256-GCM.
- The key comes from your passphrase through PBKDF2-HMAC-SHA256, with 600,000 iterations and a random 16-byte salt.
- The IV is a random 12 bytes per encryption.
A signature verifies with Sui's own verifier (verifyPersonalMessageSignature). A key derived from a phrase is the same as the Sui CLI's (sui keytool import), on the standard path m/44'/784'/0'/0'/0'.
The bundled SDK #
tools/wallet_vendor.py builds extension/wallet/sui.bundle.js:
- The packages:
@mysten/suiand@scure/bip39, each at its newest version that is at least 14 days old, pinned exactly, bundled with esbuild. - The record: the versions, npm's integrity hashes and the bundle's sha256, in
vendor.lock.json. - No remote code: the extension never loads code from anywhere else.
Tests #
tests/test_wallet_tw0.py runs the custody tests under Node (tests/wallet/vault.test.mjs):
- Nothing secret at rest: not the phrase, its words, the private key or the seed, in any encoding.
- A wrong passphrase unlocks nothing, and a sixth wrong one in a row is locked out.
- Signatures verify with Sui's verifier.
- The idle lock works.
- Zero network calls in a whole session.
It also compares the address with the Sui CLI's for the same phrase.
What it does not protect against #
- Malware on your computer can act as you while the wallet is unlocked. Lock it when you step away; the idle lock limits the window.
- The recovery phrase is the wallet. Anyone who reads it controls the wallet, on any device.
- Testnet today. Nothing here moves real money until mainnet is switched on.
Build on it #
Everything the wallet does is in the wallet SDK, one package the extension and the web app are built from.