About
## Link to a twitter post explaining your project (or post with the video) https://x.com/DruxAMB/status/2112460220098326660?s=20
## Challenges I ran into
Eleven concrete issues are documented in `arkiv/friction.md` with the exact errors observed on Tiramisu. The ones that cost real time:
- **Bare `select()` fails.** No way to ask for the latest N entities without a predicate. We always send `project='safestay_v1'` plus `$creator` and walk pages.
- **`createdAt` is not indexed.** Range filters on it silently return zero rows. We write our own `ts: u64` attribute instead.
- **Silent mis-typing.** A bare `Date.now()` stores as `i32` and overflows; every timestamp needs `u64(BigInt(...))`.
- **Attribute casing.** SDK types accept camelCase, Tiramisu rejects it at write time. All keys are snake_case.
- **`watchEntityEvents` handlers.** `onEntityEvent` fails silently; the real names are `onEntityCreated` and `onEvent`, and the stream is network-wide so we filter on `project` ourselves.
- **`executeBatch` returns no deadlines.** We derive keys first with `predictEntityKeys` (salts reused) so outcome and evidence cross-link atomically.
- **`ANON_COST_LIMITED` bursts**, including an HTTP-200 JSON-RPC error shape that viem's 429 retry ignores. Fixed with batched transport, pinned-block snapshots, and optional `X-API-KEY`.
## The problem it solves
Renters in India hand over **โน20,000 to โน1,00,000+** in deposits and PG advances with no way to check whether the landlord returned the last tenant's money.
- Review sites are gameable, brokers are paid by the landlord, and nothing about the refund is on record.
- When a landlord keeps a deposit it leaves no public trace, so the next tenant pays blind again.
**What SafeStay does:** turns deposit outcomes into public, wallet-signed, immutable Arkiv entities.
- A landlord signs `deposit_terms` naming the tenant wallet.
- The tenant later signs a `deposit_outcome` referencing those terms.
- An outcome counts as **verified** only when the referenced terms name that same tenant wallet back, so fake reviews require colluding with the landlord's own key.
- Any renter can read a landlord's full record before paying: signed stays, amounts promised versus returned, kept amounts, evidence hashes, expiry dates.
No payments, no custody, no star ratings. Cryptographic provenance on a record nobody, including us, can edit.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











