How it works

Security model

What protects the money, what you have to trust, and what Floe can’t protect against.

On this page

https://floeonsui.vercel.app/claim?id=0x8f2c…41de#k=suiprivkey1…&n=Thanks+for+lunch!&g=B1IBpai6…

Page
Sent to the server. The same for every link.
Escrow ID
Sent to the server, and public on Sui.
Key, note and gift ID
Read by the browser. Not sent to Floe’s server.

The part after the # is the URL fragment. Browsers keep it on the device when they request a page, and leave it out of the referrer. Floe’s code reads it in the browser and never uploads it.

What the contract enforces#

RuleHow
Only the link’s key can direct a claimAn Ed25519 signature is checked against the public key saved in the escrow.
A copied signature can’t be redirectedThe signed message includes the recipient’s address.
A signature can’t be reused on another escrowThe signed message includes the escrow ID.
An escrow pays onceClaiming or refunding consumes and deletes the object.
Expired links can’t be claimedThe time comes from Sui’s shared clock.
Only the sender can refundThe transaction sender must match the escrow’s sender.
Donations can’t be redirectedThe treasury address is a constant in the contract.
Floe can’t take the moneyThe module has no admin function, fee or withdrawal path.

What you have to trust#

  • The site’s code. It handles the key in your browser. A compromised site, browser extension or device could read it.
  • The published package. It is unaudited. Check its on-chain upgrade policy before relying on it, because that depends on how it was published.
  • Google and Enoki, for accounts made with Google. Both must be working for you to log in. A zkLogin account needs them to sign.
  • Sui, to order and run transactions.

What the server can do#

/api/claim receives a transaction the recipient has already signed. It can refuse to sponsor it, but any change would break the signature. It accepts exactly one call to claim_escrow and simulates it first, so the gas budget can’t be spent on anything else.

If sponsorship is down, the money is unaffected. The sender can still refund, because that doesn’t go through Floe.

What is public on Sui#

Anyone can see the sender’s address, the amount, the token, the roundup, the envelope theme, the expiry, the link’s public key and, after a claim, the recipient’s address. The note and the private key are not on chain. The privacy policy covers this in full.

Known limits#

  • The contract has not been audited.
  • A link works for whoever opens it first. It can’t be limited to one person or email address.
  • The note is part of the link and is not signed, so someone forwarding it could edit it.
  • A gift can be opened by anyone with the link, and can’t be deleted, even after a refund. The blob ID isn’t signed, but a swapped gift won’t open unless it was made with the link’s key.
  • The sender’s name isn’t shown or verified. A link proves there is money in it, not who sent it.
  • The unit tests cover payouts, refunds, expiry and rejected signatures. They don’t run a full claim with a real signature.

Report a problem#

Open an issue on GitHub. Issues are public, so for a vulnerability say only that you have one and ask for a private channel. Never include a working link or key.