A prepaid code for the KEIBIDROP bridge holds a hash chain, and the app pays for bridge bandwidth by revealing the next value of that chain, which the relay can check by hashing it forward. Each step of the prepaid hash chain pays for 10 MiB through the bridge, and the app reveals the next steps every 3 s, 2 steps ahead of the bytes it uses; read from the code of KEIBIDROP 0.5.1 and of the 0.6.0 pull request on 29 November 2026. No account is created at any point, because the code itself is the credit, and the bridge still sees the room, the byte counts, the timing and the addresses.
A code holds a secret, and the chain is that secret hashed many times
The code carries a seed, the chain is the seed hashed with SHA-256 again and again, and its last value, the anchor, goes to the bridge when a paid connection opens. A code is a string that starts with KDT1. and holds 40 bytes: a 32-byte seed, the number of steps the code buys, and a checksum that catches a typo when it is pasted. One step buys 10 MiB through the bridge, and a code can carry at most 1,000,000 steps. The chain comes from one function in pkg/tokens/tokens.go at the tag v0.5.1:
// ChainHash is the chain value at position: seed hashed position times. The
// anchor is the value at the chain's full length; spending reveals values
// toward the seed.
func ChainHash(seed [32]byte, position int) [32]byte {
cur := seed
for i := 0; i < position; i++ {
cur = sha256.Sum256(cur[:])
}
return cur
}
When a paid connection to the bridge opens, its first write carries the anchor beside the room token, where a free connection sends the room token alone. The idea is the one Rivest and Shamir published as PayWord in 1996, with a vendor in place of our relay:
"The user authenticates a complete chain to the vendor with a single public-key signature, and then successively reveals each payword in the chain to the vendor to make micropayments."
Our app signs nothing, because the relay's ledger already knows each anchor that the token service minted: when a pasted code is not on it, the app answers "this code is not on the relay ledger" and drops the code.
Every 3 s the app reveals the steps that cover its half of the bytes
The app reveals to the relay on its own HTTPS calls, every 3 s, 2 steps ahead of what its session has used, at most 64 steps a call, and for half of the session's bytes, because the friend's app covers the other half when the friend also pays. It counts the bytes its session sends and receives, halves that count, and keeps the revealed steps 2 ahead of it at 10 MiB a step. In the table below, each row is one rule of that loop with the place in the code at v0.5.1 where it lives:
| Rule | Value | Code at v0.5.1 |
|---|---|---|
| Bandwidth one step buys | 10 MiB (10 << 20 bytes) | pkg/tokens/tokens.go, UnitBytes |
| Steps a code may carry | at most 1,000,000 | tokens.go, MaxChainUnits |
| How often the app reveals | every 3 s | pkg/logic/common/tokens.go, revealTick |
| How far ahead of the bytes | 2 steps | revealLead |
| Steps in one call | at most 64 | revealMaxBatch |
| While the ledger does not answer | tries spaced out, up to 30 s apart | revealMaxDelay |
| A chain that runs dry or a relay that is down | the session drops to the free class and goes on | the comment at the top of the file |
The reveal never travels on the data path. The comment that opens the engine's token code says it in one sentence: "Nothing here ever touches the data path: the preamble is the same single write a legacy token was, the one ack byte is stripped transparently on the first read, and reveals ride their own HTTPS calls."
The relay checks a reveal by hashing it, and cannot make the next one
Hashing a revealed value forward gives the value the relay already holds, and the next value needs the seed. Each reveal sends the anchor, a value some steps closer to the seed, and the number of steps, from the function postReveals:
reveal := chainHashAt(c.seed, c.Units-revealed-steps)
err := ts.kd.postRelayJSON("anchor/reveal", map[string]any{
"anchor": base64.RawURLEncoding.EncodeToString(c.anchor[:]),
"hash": base64.RawURLEncoding.EncodeToString(reveal[:]),
"steps": steps,
}, &resp)
The chain's own definition is the check: hashing the new value as many times as the steps it claims gives the last value the relay accepted, or the anchor on the first reveal. Going the other way, from a value toward the seed, means finding a SHA-256 preimage, so neither the relay nor anyone who watched an earlier reveal can produce the next step. A value that was already revealed lies on the anchor's side of the last accepted value, so hashing it forward never reaches that value, and it cannot count twice. The app reads the steps that remain from each answer, and when a person pastes a code that the ledger counts as spent, the app refuses it with "this code is already spent".
The bridge learns the room, the bytes, the timing and the addresses, and no name
No account and no name reach the bridge or the relay, while the addresses and byte counts stay visible to whoever runs them. Our privacy page says the bridge "sees IP addresses and byte counts but cannot decrypt the data". The code adds what the operator can join: the anchor travels in the bridge connection's first write beside the room token, and the reveals reach the relay with the same anchor, so the two together tie one code's spending to the sessions it paid for. The code holds no email address, phone number or name. Buying one goes through Stripe, which sees the card, and our token service keeps a SHA-256 hash of the code and a keyed hash of the address that opened the buy page, as the privacy page lists.
Marius put the bridge's view plainly in his Pass the SALT talk in July 2026:
"So it's not much basically I can just count bytes and I know the initial IPs who connect to it."
The credit does not change that view, and it adds no identity to it. Discussion 242 holds the promise the design keeps:
"We are still committed to not spying on you and not forcing you to create an account!"
Credit buys full speed on a busy bridge, in the words of the pricing page and the app
The pricing page says what a code buys in KEIBIDROP 0.5.1: "Priority speed: paid sessions keep full speed on a busy relay while free sessions share what is left." It adds that "One payer upgrades the whole session: if either side of a transfer has credit, the transfer runs at priority for both", and that credit "does not expire and there is nothing to cancel: no account, no subscription, no recurring charge." The free class runs at full speed whenever the relay has headroom, so a code matters on a busy relay and changes nothing on a quiet one.
The app of the 0.6.0 pull request tells a person the same thing in its own words: "This connection runs on our free bridge, where speed is capped. A data pack unlocks full speed."
A code is used from the app's settings, or pasted from the web page
In the app, Settings, Relay credit, Buy opens the purchase, and the credit adds itself after payment. A code bought on the web page is pasted into the app. From then on the app spends it only while a session runs through the bridge, and a direct or local network session spends nothing.
Limits. The bridge sees addresses, byte counts and timing for every session it carries, paid or free, while the payload stays encrypted end to end. Where the addresses matter, a direct or local network connection never touches the bridge.
The code is the credit, so a lost code cannot be recovered, and anyone who holds it can spend it. Keep it where you keep other secrets.
The app reveals 2 steps ahead of use, so a session that ends can leave up to 2 revealed steps unused. A chain that runs dry, or a relay that cannot be reached, moves the session to the free class, and the transfer goes on.
Direct and local transfers need no code at all
Do I need to pay for bandwidth?
Not for direct or local network transfers, which are free and never touch our servers. Credit matters only when two devices cannot reach each other and the bridge carries the bytes, and even then the free class runs at full speed whenever the bridge has headroom.
Can you use a prepaid card without registering?
A KEIBIDROP code needs no registration, because the code is the credit and the app spends it by revealing hash chain values. The payment itself goes through Stripe, which sees the card, and we receive no name and no email address.
send large files no registration
Direct and local network transfers need no account and no code, whatever the file size. When the bridge has to carry the bytes, a prepaid code buys priority on a busy relay, also with no account.