FORGE SDK SPECIFICATION/ROBINHOOD TESTNET 46630/v1.2.0 · HARDWARE TPM DRIVER
TARGET: TS · PYTHON · ROS2
DEVELOPER REFERENCE · FORGE SDK

Forge Docs

From a new device to a machine with a wallet in one command, then sign swaps and pay over HTTP 402.

1 · Quickstart & Device Registration

Initializes non-exportable hardware private key in TPM/Secure Enclave and creates the counterfactual ERC-4337 Machine Account on Robinhood Testnet.

SHELL // FORGE-CLI INITIALIZATION
NPM / BUN
$ npx heph-forge init # creates key in secure element/TPM, registers identity

2 · Sign a swap (Private Uniswap v4 Pool)

The hook requires signed EIP-712 machine authorization. The swap executes through HephRouter with Talos daily spend policies enforced on-chain.

TYPESCRIPT // MACHINE SWAP CALL
TS CLIENT
> const m = await Forge.load(); await m.swap({ from: "REWARD", to: "USDG", amount: "25" }); // hookData signed, router-only

3 · Pay through the Facilitator (HTTP 402)

Autonomous machine-to-machine micropayments. Gas is sponsored by the Paymaster and deducted directly in USDG credit without requiring ETH balance on the machine.

TYPESCRIPT // HTTP 402 PAY PROTOCOL
TS CLIENT
> await m.pay({ url: "https://dock-07.example/charge", amount: "6.20" }); // HTTP 402 flow, gas billed in USDG
KEY SECURITY & TPM PROTOCOL
NON-EXPORTABLE HARDWARE LEVEL 3
Non-exportable TPM / Secure Element Session Keys

Whoever holds a machine private key can impersonate that machine. In HEPH, keys live strictly inside the physical hardware secure element or TPM chip, never in a plain file or exposed on-chain.

■ TALOS POLICY:
Strict on-chain daily USDG spend caps per device.
■ KILL SWITCH:
Operator can freeze or revoke session keys instantly.
■ PAYMASTER RAIL:
Gas sponsored by Paymaster; billed in USDG quota.