Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(deps): replace tinywallet with tinywallet-bus contract crate

Steven Enamakel4494d0ed80b3
diff --git a/Cargo.toml b/Cargo.toml
index be8a2607d6..b1b8d303d0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -524,23 +524,22 @@ tinyhosts = { path = "vendor/tinyhosts", default-features = false, features = ["
# After cloning: `git submodule update --init vendor/tinywallet`.
#
# Optional: exclusive to the default-ON `web3` feature.
-# Taken WITHOUT `tx` or `client`, which is the whole point: those are the only
-# gates that pull the `bitcoin` crate and its native secp256k1 build, and
-# transaction building now happens in the loaded `tinywallet` module instead.
-# What stays is address validation, key derivation, the `Transport` seam, the
-# wire contract, EIP-712 hashing and ERC-20 calldata — none of which needs a
-# chain library.
-# Key derivation (`key`) and transaction signing (`tx`) are deliberately absent:
-# both happen inside the loaded tinywallet module now, so this binary links
-# neither. What is left is the wire contract, address validation, the EIP-712 /
-# ABI encoders the x402 payment path builds with, the `Transport` seam, and
-# `tx-codec` — the Tron *verifier*, which runs host-side before a transaction is
-# sent for signing and needs no `bitcoin` build.
-#
-# `key` is re-enabled under [dev-dependencies] so test fixtures can still derive
-# a known account. Dev-dependency features are not linked into the shipped
-# binary, so that does not undo the shed.
-tinywallet = { path = "vendor/tinywallet", default-features = false, features = ["btc", "evm", "solana", "tron", "keccak", "net", "wire", "eip712", "abi", "tx-codec"], optional = true }
+#
+# Taken as `tinywallet-bus`, the contract crate, and NOT the root `tinywallet`
+# crate. The root crate is where key derivation, transaction building, signing
+# and the chain clients live, and those are the gates that pull the `bitcoin`
+# crate and its native secp256k1 build; all of it happens inside the loaded
+# `tinywallet` module now, so this binary links none of it. What the contract
+# crate carries is exactly what a host still runs itself: the wire types that
+# cross the bus, the bus member names, address validation, the EIP-712 and ERC-20
+# encoders the x402 payment path builds with, the `Transport` seam this crate
+# implements, and the Tron verifier that checks what a node handed back before
+# a transaction is sent for signing.
+#
+# The root crate is still taken under [dev-dependencies], where test fixtures
+# derive a known account. Dev-dependency features are not linked into the
+# shipped binary, so that does not undo the shed.
+tinywallet-bus = { path = "vendor/tinywallet/crates/tinywallet-bus", default-features = false, features = ["btc", "evm", "solana", "tron", "keccak", "net", "wire", "eip712", "abi", "tx-codec"], optional = true }
# secp256k1 signing over the digests the wallet module hands back. Pure Rust,
# and already in the graph beneath `coins-bip32` (which derives the key being
@@ -848,7 +847,7 @@ voice = [
# to derive a Solana ATA, which is address arithmetic rather than signing, and
# tinyplace pulls it in through `ed25519-dalek` regardless.
web3 = [
- "dep:tinywallet",
+ "dep:tinywallet-bus",
"dep:curve25519-dalek",
"modules",
]