How SAFU MODE works.
SAFU MODE launches coins on Flap, on BNB Chain. The dev's coins, the dev's share of the tax and the SAFU Fund all sit in vaults that open only for one-time hash signatures. This page covers what that is built from, how each part works, what it costs, and where the protection stops.
The quantum problem
Every ordinary BNB Chain wallet is an elliptic-curve key pair (secp256k1). The wallet is safe as long as nobody can work out the private key from the public key. A large enough quantum computer running Shor's algorithm can do exactly that, for every elliptic-curve key at once.
Hash functions are a different kind of problem. The best known quantum attack on a hash only halves its strength, so a 256-bit hash keeps a wide margin. A signature made from nothing but hashes stays secure.
No such computer exists today. The reason to act now is that a dev wallet and a treasury can sit on-chain for years, with their public keys visible the whole time. A key that is safe this year is not promised to be safe for the life of the coin.
What it is built from
SAFU MODE uses the Winternitz one-time signature, a design from 1979 that needs only a hash function. It is the part that does the signing inside every hash-based standard NIST has published:
- FIPS 205 (August 2024) defines SLH-DSA. Each SLH-DSA signature is a tree of Winternitz signatures.
- SP 800-208 (October 2020) approves LMS and XMSS, which are Winternitz keys under a Merkle tree, each key used once.
We use the Winternitz signature in its plain form over keccak256, the hash BNB Chain already runs on, and let the vault itself keep track of which key comes next. This is the same building block as those standards. It is not an implementation of either one, and we don't call it one.
How a vault works
A vault is one small contract. It has no owner address and no wallet key.
- It stores the 32-byte fingerprint of one key, and a count of the actions it has run.
- It holds BNB and coins at its own address.
- It acts only when shown a valid signature over the exact action: the target, the amount, the call data, the vault's own address, the chain, the count, and the fingerprint of the next key. A signature therefore works once, in one vault, on one chain.
- Running an action replaces the stored key with the next one. Every key signs exactly once.
- It keeps a public list of every action it has run and which key signed each one.
Any wallet can submit the transaction and pay the network fee. That wallet has no authority: it can't change what the vault does, because the signature fixes every field. Breaking the fee wallet's key gains an attacker the gas money in it.
A vault's address is derived from its first key, so nobody can create your vault with a different key, and it can receive coins before it exists on-chain. All keys come from one vault phrase that is made in your browser and never leaves it.
The signature, in numbers
| Hash function | keccak256, 256-bit output |
|---|---|
| Key | 67 secrets. Each is hashed 15 times in a row to make a chain. |
| Fingerprint | 32 bytes: the hash of the 67 chain ends. This is all the vault stores. |
| Signature | 2,144 bytes: one point on each of the 67 chains |
| What sets the points | The 64 hex digits of the message hash, plus 3 checksum digits |
| Uses per key | One. The signature names the next key and the vault switches to it. |
| Checking it | About 500 keccak256 calls. The contract hashes each shown point forward to the end of its chain and compares the result with the stored fingerprint. |
Anyone can hash a point forward. Nobody can hash it backward. The checksum means that pushing any digit of the message forward forces a checksum chain backward, so a signature can't be bent to fit a different message. The contract is 38 lines and is the whole of the cryptography: Wots.sol.
Beside the NIST scheme
The other way to do this on BNB Chain is to verify SLH-DSA-128s in a contract. Here are the two side by side.
| SLH-DSA-128s | SAFU MODE | |
|---|---|---|
| Rests on | Hashes only | Hashes only |
| Hash output | 128 bits (SHA-256, cut short) | 256 bits (keccak256, full) |
| Signature | 7,856 bytes | 2,144 bytes |
| Create a vault | about 1.1 million gas | about 0.5 million gas |
| Sign and send BNB | about 0.9 million gas | about 0.35 million gas |
| Buy a coin from the vault | about 1.25 million gas | about 0.8 million gas |
| Sell a coin from the vault | One signature | Two keys: one to allow, one to sell |
| Trade after PancakeSwap listing | Not built | Built |
| Keys | One key signs many times | One key per action, switched by the vault |
| A NIST standard as a whole | Yes, FIPS 205 | No. The signing part of it, used directly |
What you give up with ours: the name of a finished NIST standard, and keys you can reuse. What you get: a full 256-bit hash, a signature under a third of the size, and every action at roughly half the gas or less. The one-time rule is enforced by the vault, which moves to the next key inside the same transaction.
SLH-DSA figures are the ones published by PQCpad, a BNB Chain launchpad that verifies SLH-DSA-128s on-chain, read on 4 December 2026. Ours are measured; see Measured costs.
A launch, step by step
- Store. The coin's picture and details are stored with Flap's own upload service, so the coin shows correctly on Flap.
- Make the vault key. Your browser makes a vault phrase and works out the first key's fingerprint. The dev vault's address follows from it.
- Seal. A separate one-time key signs the launch: your wallet, the name, the ticker, the address salt and the vault key. Change any of them and the seal fails.
- Submit. Your wallet sends one transaction to the SAFU MODE contract and pays the fee.
- Verify and launch. The contract checks the seal, creates a keyless tax splitter for the coin, and calls Flap's
newTokenV6. Creation and your first buy happen together, so nobody can buy in between. The coins from that buy go straight to your vault. - List. In the same transaction the coin is recorded in the contract with its vault, its splitter and the key that sealed it. The board on the home page is read from that record, so a listing can't be faked.
Every coin gets the same settings. The contract has no owner and no setting can be changed after deployment, by us or anyone else.
Where the tax goes
- Every coin is a Flap tax token with a 3% tax on buys and sells. The contract sets this itself.
- Nothing is paid out to holders.
- Flap keeps its own share of the tax, and charges its own trading fee while a coin is on the bonding curve.
- The rest lands in the coin's splitter, a contract with no owner and no key. Anyone can trigger it. It sends 50% to the SAFU Fund vault and 50% to the dev's vault.
- The SAFU Fund uses its share to buy coins launched here and holds them in its vault. Every buy it has made is in the vault's public list.
The fund vault is controlled by the SAFU MODE team's vault phrase. The contract does not force what it buys or when. What it can't do is move without leaving a record: every action, target and amount is readable from the vault.
What is protected
| Part | Quantum-resistant? |
|---|---|
| The dev's first buy and the dev's tax share | Yes. Held in the dev's vault |
| The SAFU Fund's BNB and coins | Yes. Held in the fund vault |
| Where each coin's tax is sent | Yes. The splitter has no key to break |
| BNB and coins a holder keeps in their own vault | Yes. Any holder can make one |
| The wallet that submits a launch or pays a fee | No. It is an ordinary wallet, and it controls nothing afterwards |
| Buyers holding in ordinary wallets | No, until they move coins into a vault |
| Flap's contracts and the BNB in its bonding curve | No. Controlled by Flap's own keys |
| BNB Chain itself: validators, transaction senders | No, until the network migrates |
The accurate one-line claim is a quantum-resistant dev bag, tax route and fund. It is not a quantum-resistant token: Flap creates the token, and no launchpad can force every holder into a vault.
Measured costs
| Action | Gas |
|---|---|
| Create a vault | 500,715 |
| Check a signature and send BNB | about 330,000 |
| Buy a coin on Flap from a vault | 790,613 |
| Launch on Flap | 6,300,764 |
Measured on a private copy of BNB Chain mainnet, the launch and the buy against Flap's real contracts. The cost in BNB depends on the network's gas price at the time.
Check it yourself
- Ask the contract. The key panel on the home page sends a real signature to the vault factory and shows which key it proves. Change one character of the message and the answer changes to refuse. It is a read: no wallet, no cost.
- Open any coin. Each coin's receipt shows the key that sealed its launch, its vault, and what the dev vault and the fund vault hold, all read from the chain.
- Read the fund. The fund section lists every action the fund vault has run.
Status and limits
This is unaudited software. It has not had an independent security review. Only use amounts you can afford to lose.
- The contracts have no owner and cannot be changed.
- A key must never sign two different actions. The site only ever re-sends the same action if a transaction fails. Don't sign for one vault from two devices at the same time.
- Anyone with your vault phrase controls your vault. There is no reset.
- Selling a coin from a vault takes two actions and two keys, because a vault runs one call per signature: the first lets the exchange take the coins, the second sells them. Selling after a coin has moved to PancakeSwap is built but has only been tested on the bonding curve so far.
- The plain Winternitz scheme used here has not had the public review that SLH-DSA has had.
- SAFU MODE is not affiliated with or endorsed by NIST, Flap, Binance, CZ or BNB Chain.
References
- NIST FIPS 205: Stateless Hash-Based Digital Signature Standard (August 2024)
- NIST SP 800-208: Recommendation for Stateful Hash-Based Signature Schemes (October 2020)
- Flap developer documentation