SafeStay

Deposit history landlords cannot fake

Visit Repo
SafeStay banner

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

SafeStay screenshot 1SafeStay screenshot 2SafeStay screenshot 3SafeStay screenshot 4SafeStay screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.