GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing rentnode.org — Rentnode - rent compute, metered by the second A meter, not a middlemanRenting a machine from a stranger normally needs someone in the middle: to hold the deposit, to decide who was right when the box went down, to take a cut for the trouble. Rentnode removes that seat. A renter escrows USDG against a listing, the contract pays it out to the provider one second at a time, and either side can stop the clock whenever they like. Every unspent cent goes back to the renter in the same transaction.
◆ The contract does not run, verify or vouch for any machine. A listing is a claim its provider makes. Your protection is not a judge - it is that leaving costs you nothing but the seconds you used. Compute priced like electricityVisionIdle hardware is everywhere: a gaming rig at night, a lab's cluster between papers, a startup's over-provisioned box. What stops it being rented is not the hardware, it is the paperwork - accounts, minimums, invoices, disputes. Rentnode's vision is a market where anyone can plug a machine in, anyone can draw from it, and the bill is settled by the clock rather than by a company. Mission
One contract, one tokenComputeMarket holds two arrays - listings and leases - and one token reference, USDG. It talks to nothing else: no oracle, no router, no registry, no proxy. The console is a window onto that state; anyone can read or write it directly with a wallet, and a relay can act as a provider without any special role. One contract, one token, no owner. The machine is on the right and the chain never looks at it - that is the design, not a gap. Listing a machinelist(kind, pricePerHour, spec, endpoint) pushes a listing owned by msg.sender. kindis one of GPU, CPU, Storage, Database and only sorts the shelf; specis free text like RTX 4090 / 24GB / eu-central; endpoint is where a renter reaches the machine once paid.
// a listing, as stored struct Listing { address provider; Kind kind; uint96 pricePerHour; bool open; string spec; string endpoint; } // pricePerHour is USDG with 6 decimals: 0.50 USDG/hr = 500000 Escrow and the second-handrent(listingId, amount) pulls amount USDG into the contract and opens a lease with startAt = block.timestampand the listing's price frozen into it. From that block on, the provider's earnings are a pure function of time: // what the provider has earned so far earned = min(pricePerHour × (now − startAt) ÷ 3600, funded) // multiply before dividing, so sub-cent seconds never round to zero Two numbers describe every lease: what has been earned, and what is left. Both are one read on the contract. Top-upstopUp(leaseId, amount) adds funding to a running lease. Anyone may pay - a team can keep a colleague's box alive - but the refund always goes to the renter of record. A lease that runs out of funding simply stops earning; it never goes into debt, and the renter is never billed past what they escrowed. Claimingclaim(leaseId) lets the provider draw down earned − claimed at any moment without ending the lease. Nothing forces them to wait; nothing lets them take more than the clock has counted. Closing, by either sideclose(leaseId) may be called by the renter or the provider - nobody else. It stamps closedAt, computes the final split, and moves both halves in one transaction. Settlement is identical whoever called it: // at close() owed = earned − claimed → provider refund = funded − claimed − owed → renter // contract balance for this lease after: 0
◆ This is the whole dispute mechanism. There is no "the box was down" ticket because the renter's remedy - stop paying, now - does not need anyone's agreement. Real supply through a relayA marketplace with no machines is a contract with no purpose. Rentnode ships a relay - an ordinary provider process, open source, running under its own key - that mirrors a curated set of Vast.ai machine types onto the shelf, priced at Vast's live rate plus a margin, and fulfils leases with real instances.
The contract stores one endpoint per listing, but a lease is per renter. The signature is what turns a public URL into a private door. ▲ The relay is convenience, not protocol. It has no privileged role in the contract; if it went offline, its listings would go stale and anyone else's would be unaffected. Vast bills the relay operator in USD; renters pay the contract in USDG. The margin covers that gap. Who can move whatThe clearest way to state the custody model is as a permission table. Three actors exist: the renter, the provider, and Rentnode. The last column is empty on purpose. The third column is the product. The relay is a provider like any other; its key has no more power than yours. Concretely: no function in ComputeMarket is gated by an owner, admin, guardian or multisig role. There is no Ownable, no Pausable, no upgradeable proxy, no fee recipient. The deployer's key was used once, to deploy, and has no standing afterwards. The whole contract is under 240 lines - short enough to read in one sitting. What the cryptography actually guaranteesRentnode adds one signature scheme of its own - the access hand-over - and otherwise rests on the primitives of the chain. It is worth being precise about which ones do what. Authorisation: ECDSA over secp256k1Every state change is a transaction signed by an Ethereum account. The contract checks msg.sender against the lease: only the renter or the provider may close, only the provider may claim or reprice. Nobody, including Rentnode, can forge a signature for your key. Access hand-over: EIP-191 personal_signThe contract stores one endpoint per listing, but a lease belongs to one renter. So the console asks the renter to sign the plain message rentnode lease <id> <unix minute> with the wallet that paid - no gas, no transaction. The relay recovers the signer with ecrecover, reads leaseAt(id).renterfrom the chain, and returns the ssh host, port and private key only if they match. The minute in the message bounds replay to five minutes. The relay never learns the renter's wallet key, and no one else can fetch the ssh key. Per-lease ssh keys: Ed25519The relay generates a fresh Ed25519 keypair for every lease with ssh-keygen, installs the public half on the instance, and hands the private half to the renter over the signed channel. Closing the lease destroys the instance; the key is worthless afterwards. Integrity: the chain's consensusEscrow balances are storage slots in a contract whose bytecode is fixed at deployment and hashed into every block that follows. Altering one would mean altering Robinhood Chain's history. This is the same guarantee that protects USDG itself. Re-entrancy and token safetyThe contract inherits OpenZeppelin's ReentrancyGuard; rent, topUp, claim and close are nonReentrant. Transfers go through SafeERC20, which reverts on tokens that return nothing instead of true. Amounts are uint96: large enough for any real lease, small enough that the whole lease packs into two storage slots. ◆ There is no zero-knowledge, no encryption of listings, no off-chain signing service in the money path. What you see on-chain is the whole settlement system. The relay is the only off-chain component, and it can only do what any provider can. Risks and limitsThese are the things that can go wrong. They are real, and knowing them is the price of using a system nobody can pause.
▲ Fund leases in small increments and top up as you go. The contract will happily hold a month of escrow, but there is no reason to give a stranger's clock more than an hour's head start. ReferenceDeployed contracts - Robinhood Chain
Functions
Errors
Constants
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |