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.

PartWhat it doesStatus
Key custodymakes your key, keeps it encrypted, unlocks and locks it, signsbuilt and tested
The Sui walletthe panel at the top right; SUI, TNZR and your objects; any Sui app can connectbuilt and tested
The lock-downspend limits, approved sites, a confirm for a first send to someone new, lock when the last window closesbuilt and tested
Team trees and namessign in to a team's folder with your wallet; claim a #username others can send tobuilt and tested
Send an app screensend a small, checked app screen and get the answer back, both signedbuilt and tested
The Pass SDK coreevery send as one signed envelope, the same bytes in the browser, Python and on servers (the SDK)built and tested
Swap and sendswap 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 addressbuilt and tested
Inboxpasses waiting for you, with Accept, Refuse and Try; send a pass of any kindbuilt and tested
Camera filterstry a filter someone sent you, on your camera, inside the wallet (make one)built and tested
Trainstart a fine-tuning job with a bid from the walletin progress
The two switchesrender speed (finish soonest, up to your cap) and sata share (your idle GPU earns in the pool)planned

Instructions #

Create your wallet #

  1. Choose a passphrase of at least 8 characters. It unlocks the wallet on this device only.
  2. 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.
  3. Your Sui address is shown. It is public, and you can share it.

Unlock and lock #

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.

When an app asks #

Every connection and every signature opens a small TensorChain window first. It shows which site is asking and exactly what:

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.

Chainsui:testnet only. A request naming any other chain is refused chain_not_allowed before anything is shown.
Featuresstandard:connect, standard:disconnect, standard:events, sui:signPersonalMessage, sui:signTransaction
Approvalevery connect and every signature waits for the person's approval in the wallet's own window; a rejection is the error rejected
Transactionssend 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 refusalsnot_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();
CallReturnsRefusals (VaultError.code)
create(passphrase){address, phrase}vault_exists, weak_passphrase
restore(phrase, passphrase)the addressvault_exists, bad_phrase, weak_passphrase
unlock(passphrase)the addressno_vault, wrong_passphrase, locked_out, vault_corrupt
signPersonalMessage(bytes){bytes, signature}, in Sui's own formatlocked
isUnlocked(), lock(), address(), exists()

What is stored: {format, address, salt, iv, iterations, ciphertext}, and nothing else.

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:

Tests #

tests/test_wallet_tw0.py runs the custody tests under Node (tests/wallet/vault.test.mjs):

It also compares the address with the Sui CLI's for the same phrase.

What it does not protect against #

Build on it #

Everything the wallet does is in the wallet SDK, one package the extension and the web app are built from.