A DOOR THAT TRUSTS A SIGNATURE, NOT THE WI-FI
Each booking gets a pass that opens the door from check-in to check-out, only on the guest's phone. The lock checks it with Moon's public key and its own clock, so a Wi-Fi outage never locks anyone out, and a screenshot stops working within a minute.
TRY THE LOCK
A real door, a real booking and a real pass, made just for you. The lock on the right checks everything itself. Turn its internet off and try again.
// What the lock checked appears here
HOW IT WORKS
The lock never asks the internet whether to open. Everything it needs to decide is in the pass, signed by Moon, plus the guest's phone and the lock's clock.
The host books a stay and sends the guest an invite that works once. The guest's phone makes its own key and keeps the private half locked.
Moon signs the door, the stay, the phone's key and a time window. It's renewed each day while the phone is online, so a cancelled stay stops working within a day.
The QR carries the pass and the phone's signature on the current 30 seconds. The lock checks Moon's signature, the window and the phone's code, all offline.
Each stay also gets a 10-digit backup PIN. The lock works it out itself from the dates and a secret it shares with Moon. Every opening is logged and signed.
WHAT STOPS WHAT
BUILD YOUR OWN
Stays is an open API, and the lock's check is a few lines of standard cryptography that run anywhere: a browser, a phone by the door, a small board wired to a lock. Use Moon's pages, or build your own around them.
curl -X POST https://api.moon369.org/v1/stays/$DOOR/book \
-H "Content-Type: application/json" \
-d '{"key":"…","guest":"Avery",
"arrive":"2026-12-04","depart":"2026-12-07"}'
{ "stay": { "check_in": "2026-12-04T22:00:00Z", … },
"link": "https://moon369.org/stay?d=…&i=…",
"pin": "3380322012" }const [door, stay, nb, na, pub, kid, moonSig, w, sig] = payload.split('#')[1].split('.');
const moon = await importEd25519(MOON_KEYS[kid]);
const pass = ['moon-stay-pass/1', door, stay, pub, nb, na].join('\n');
if (!await verify(moon, moonSig, pass)) return 'NOT SIGNED BY MOON';
const now = Date.now() / 1000;
if (now < nb || now > na) return 'OUTSIDE THE STAY';
if (Math.abs(Math.floor(now / 30) - w) > 1) return 'OLD CODE';
const phone = await importP256(pub);
const code = `moon-stay-code/1|${door}|${stay}|${w}`;
return await verify(phone, sig, code) ? 'OPEN' : 'WRONG PHONE';The full reader, with PINs, cancelled stays and the opening log, is lock.js. API reference: moon369.org/api#stays.
PUT IT ON A REAL DOOR
Add your door, book a stay, and run the lock reader on any phone or tablet by the door. It works the same with no internet.