First exchange listing: the NonKYC campaign needs 100 backers by 2027-02-04, and $5 counts as one. Pledges are donations, refunded if the listing does not happen. Back the campaign →

Bitflash Download

Docs · btfchat

btfchat — messaging that burns

Design document, 2026-09-18. The first section says what 1.2.29 actually ships; everything after it is the design the shipped part grows into. Status of each phase is at the end.

What 1.2.29 ships

Not in 1.2.29, all described below: burn stamps on every message, fixed-size envelopes, cover traffic, ephemeral onions per conversation, the chain-anchored handshake, groups with admins (MLS).

Known attacks on 1.2.29

Written down so nobody has to rediscover them, and so a fix can say which one it closes. Each entry: what the attacker does, what stops it, what is left. Numbers are from test_chatstore and the live runs.

Flooding the nodes' memory with a GPU. The work on each record is SHA-256 at 20 bits, about 1.2 s on one laptop core, more for bigger records. A graphics card pays that a million times over: filling the 8 MB descriptor budget took 13,024 records in the test, seconds on a GPU. Stops it: a full store refuses new records instead of evicting old ones, so nothing a node already holds is erased. The sender is told at once, the message stays in their outbox and goes direct when the other side is seen. Left: while the flood lasts, and up to a day after (records expire after 26 h), new offline messages do not get into the nodes. The per-connection ration (60 records a minute) does not help, since Tor gives an attacker as many connections as it wants. The fix is a stamp that costs coin (phase 1) or RandomX in place of SHA-256.

Many throwaway identities. Keys are free, so somebody can publish thousands of descriptors and epoch keys. Stops it: the same budget and the same refusal; an identity already held can always replace its own record, because the room its old one leaves is what the new one uses. Left: a flood can stop new identities from being findable until it ages out.

A node lying about who someone is. It could answer a lookup with another identity's descriptor or epoch keys and read everything sealed to them. Stops it: both are signed by the identity, and both the node that stores them and the client that receives them check the signature against the address that was asked for. A node cannot forge one.

Making an old descriptor win. Rewrap a validly signed old descriptor with a newer record time. Stops it: the record time must equal the signed time inside (the descriptor's creation time, the epoch's start), so "newest" is decided by what the owner signed.

A node hiding what it holds. It can answer "nothing" for a tag that has envelopes waiting. Stops it, partly: every record spreads to every 1.2.29 node, the client asks two of them and merges, and a sender tries to leave every record with two nodes (it counts as left once one has kept it). Left: if every node a client can reach is the attacker's, it can withhold, though still not forge. A client starts from the onion seeds pinned in the binary, so a dead or hostile seed slows the first contact; after that the client knows every node the others told it about.

Pushing someone's envelopes out of their tag. A tag holds at most 64 envelopes and the oldest goes first. Stops it: a tag is computed from the two people's keys and changes every day; nobody else can name it, so only the pair can fill it.

What a node learns. That somebody, over Tor, published or asked for a descriptor, or wrote to or read a tag, when, and how big. Not who: the chat never connects except through Tor, and a tag names a pair nobody can link to addresses. The number of Tor circuits a client opens is countable by whoever watches its connection; one circuit per two-minute round is the floor this release keeps to.

Inventory flood between nodes. A peer announces thousands of record ids it never delivers. Stops it: nothing new; it is the same exposure 0.1.0 has for transactions (each asked-for id costs a little memory until it times out). Records themselves are rationed at 6,000 a minute per peer and each costs a signature check at most.

Old nodes. A 1.2.28 node never sees chat inventory, because it is offered only to peers that advertise NODE_CHAT. An old node a client reaches still hands over its peer list, which may lead to new ones.

Clocks. A record more than 2 h in the future is refused; a frame older than a day is refused by the replay guard. A machine whose clock is far off will see its records refused, and says so.

A swap step that lies. The other side says "I locked 1 BTC for you" and did not, or locked less, or to another address, or under another secret. Stops it: nothing is locked or redeemed on the strength of a step. The taker's app looks the maker's contract up on the taker's own Bitflash node or Bitcoin Core and needs it unspent, confirmed, paying the taker's address the agreed amount, with 36 hours left, locked by time and not paid by a coinbase; the maker's app checks the taker's the same way, under the maker's own hash, with 6 hours left, before showing the secret. A contract's lock is read from the contract before any chain is asked about it, so a lock chosen to send a light client back over months of blocks is refused first. A raw transaction in a message is never trusted: Bitcoin is checked by gettxout on the person's own node.

Fake coins. Paying real BTF with Bitcoin from regtest or a test chain, which cost nothing. Stops it: the wallet refuses a Bitcoin Core on a test chain when Bitflash is on mainnet, and the main chain when it is on testnet.

A maker who takes and runs. The maker redeems the taker's side (showing the secret) and never says so. Stops it: the taker's app reads the secret off the chain itself (swapfindsecret, btcfindsecret), so it needs nothing from the maker. Left: the taker's app has to run at some point in the day after; if it stays closed past the maker's lock (48 h from the start), the maker can refund too. The app says to stay open while a swap runs.

A taker who never locks. Stops it: the maker's coins come back by themselves at the 48-hour lock; only time is lost. A take nobody accepts, or a contract that never confirms, expires before anything of the waiting side is locked.

Somebody else's offer. A take names the offer by its frame id, and the maker's app answers only for offers it posted itself with exactly those terms; an offer is signed, so a take goes to whoever really made it.

A node restarting. It forgets: the store is memory only, never the disk, so a seized machine has nothing to give up. It gets the records back from its peers when it reconnects (getchatinv). Left: a record that only one node ever kept, lost before it spread, is gone -- which is why the sender tries two.

What it is

A messenger inside the Bitflash wallet where the identity is a .btf address, the transport is the Bitflash P2P network over Tor, and every message burns a little BTF. No server, no phone number, no e-mail, no IP address anywhere in the system — not even ours. Sending a message makes the coin scarcer for everyone who holds it.

Why burn rather than pay the recipient: paying the recipient makes it profitable to spam yourself, and makes the recipient a party with something to hide. Burning benefits no one in particular and everyone a little, and the burn transaction reveals nothing but "someone burned this much at this time".

Threat model

Protect, in this order:

  1. Who talks to whom, and when. End-to-end encryption is table stakes; every messenger has it, and every one of them still knows the graph. This design treats metadata as the secret.
  2. Content, against anyone, now and after quantum computers.
  3. The past, when a device or a key is taken later.
  4. Deniability: a transcript proves nothing to a third party.

Not protected: an endpoint that is already compromised, and a user who publishes their .btf address next to their name.

Identity

The .btf address the node already generates (btfaddr.cpp): a public key encoded as an address, self-certifying, nothing to register. A person is a key. Reachability is separate from identity (below), so knowing someone's address tells you nothing about where their node is.

Transport

The node's existing encrypted channels between .btf addresses over Tor (btfchan.cpp), extended with four properties:

Delivery to a peer that is offline is store-and-forward by the nodes of the network, with the burn buying the time (next section). No mailbox server: the same nodes that carry blocks carry envelopes.

The burn stamp

Every envelope references a transaction with an OP_RETURN output — provably unspendable, gone from the supply — of at least the network's minimum burn. The stamp is what a node checks before it relays or stores: no valid stamp, no relay. This is Hashcash paid in coin rather than in hashing, seventeen years after the whitepaper cited it.

What the stamp buys, beyond relay:

The minimum burn is a relay policy, not consensus: nodes agree on it the way they agree on minimum fees, and it can move.

Cryptography

Nothing invented. The strongest published components, combined under the threat model above:

Money is a message

An envelope may carry a transaction. "Here is 5" is a line of chat; the payment travels inside the encrypted payload and is broadcast when the recipient opens it, or by the sender at once, their choice. A 2-of-3 escrow between buyer, seller and arbiter is negotiated in the conversation the three share, with createmultisig/signrawtransaction (1.2.28) underneath. Not a chat with payments: the wallet, talking.

Communities

Public, many members, no secrecy of content among strangers — what is protected is who writes and who reads. A community is a channel key; posting to it is broadcasting an envelope to it.

Groups

Private, up to about a thousand members, real secrecy. MLS (RFC 9420): a key tree, membership changes rotate the key in O(log n), designed with post-quantum in mind, the standard the large messengers have moved to. Each group message is an envelope like any other — burn, fixed size, sealed sender; a relaying node cannot tell a group message from a private one.

Administration is not an account: it is a multisig key of the founders. Group rules change only with their signatures, and no server exists that could remove an admin.

Clients

One protocol, three faces:

No browser client, by design: a web page needs a server or a local one behind it, and a browser leaks (cache, extensions, WebRTC).

What is ours

Most of the above is assembly of proven parts. Three things exist nowhere else and cannot be copied without rebuilding the project: the burn economy (spam, inbox price, storage and scarcity from one mechanism), the key anchored in the chain, and the wallet that talks (money inside the envelope, escrow in the conversation). All three exist because the messenger and the coin are the same program on a network that only speaks Tor.

Phases

phasescopedepends onstatus
0OP_RETURN standard in relay policy; burn stamp format; docs1.2.28 (relay policy only, no consensus)shipped in 1.2.28
1aone-to-one over onion; hybrid post-quantum channel; sealed offline envelopes held by the nodes, paid in work; local outbox; money in the conversation through the linked wallet; public communities listed on the chain1.2.29 nodes for the offline half and the directory1.2.29
1the rest of one-to-one: fixed size, burn stamp, chain-anchored handshake, money in messages; wallet tab + RPCrules v3 shippeddesign
2communities: channels, join/post burns, paid reading, reputationphase 1design
3cover traffic, ephemeral onions per conversation, node storage marketphase 1design
4groups (MLS, multisig admins)phase 1; OpenMLS or an equivalent integrateddesign
5Android clientthe native appdesign

Open questions


Rendered from docs/btfchat.md in the repository. Read the source.