How it works

Login and gas

How a Google login becomes a Sui account, and how claims run without a balance.

On this page

Google login#

Floe uses Sui zkLogin through Enoki. Google confirms who you are, Enoki derives your address, and a zero-knowledge proof lets your login authorize transactions without publishing your Google identity.

Floe asks Google for the openid scope only. It doesn’t request your email, name, contacts or photo.

What happens when you log in#

  1. The browser creates a short-lived session key and gets a nonce from Enoki.
  2. A pop-up opens Google’s login page. Google returns an ID token to /auth, and the page that opened the pop-up reads it and closes it.
  3. The browser sends the token to Enoki, which returns your Sui address.
  4. When you first sign something, Enoki returns a proof that ties the session key to your login.

The link stays out of login#

The redirect goes to a fixed page, /auth, and the claim page stays open behind the pop-up. The payment link is never part of the address Google sees.

Sessions and shared devices#

The session is kept in this browser’s IndexedDB until it expires, so you stay logged in. The session key can’t be exported from the browser.

Who pays gas#

ActionPaid by
Create a linkThe sender
Claim a link, with Google or a walletFloe’s sponsor, through Enoki
Refund a linkThe sender
Withdraw, or send money on as a new linkWhoever sends it

Sponsorship depends on the site’s Enoki budget. If it runs out, claims fail with a message to try again and the money stays in its escrow.

  • Exactly one command, a call to this deployment’s escrow::claim_escrow
  • Only if a simulation shows that the claim will succeed
  • Transfers only to the claimant and the water treasury

Stale sponsor details#

Enoki’s sponsor address or the gas price can change between building and sending. The server then answers with the code stale, and the claim page rebuilds and asks for a signature again, once.