DOCUMENTATION
Use Falqon Wallet.
Create a wallet, back it up and move SOL from a vault that only your Falcon key can unlock. The second half of this page specifies the protocol byte by byte.
Set up your wallet
- Create a wallet with a strong password, or restore one from an encrypted backup.
- Download your encrypted backup and verify it with your password.
- Send SOL to your wallet address. Your vault activates automatically once it holds the small rent minimum.
Receive and send SOL
Copy your vault address to receive SOL. Send only SOL on the Solana network shown in your wallet. To send, check the network, recipient, amount and fee. Your browser signs the withdrawal, the Falqon relayer submits it and pays the network fee, and your vault repays a fixed 0.00001 SOL that you approve in the signature.
If a withdrawal expires or times out, check the transaction and your vault balance before you try again. Each signed withdrawal is valid for one nonce and a limited slot range.
Backup and recovery
Keep your encrypted backup somewhere other than this browser. To recover, import it in the wallet and enter the original password. If you lose both the key and the backup, the vault is locked for good. Lock the wallet when you step away.
Supported assets
Falqon Wallet supports native SOL. SPL tokens, Token-2022, NFTs, swaps and dApp connections are outside its scope. Never send tokens to a vault address.
Protocol specification
Falqon is a smart account. A Solana program owns each vault and moves funds only after verifying a Falcon-512 signature over a canonical withdrawal intent. An Ed25519 fee payer signs the transaction envelope and has no authority over the vault.
Vault account
Each vault is a program-derived address with no private key. The address commits to the hash of the Falcon public key:
vault = find_program_address(
["falqon-v1", SHA-256(falcon_pubkey)],
falqon_program_id
)Initialization supplies the full 897-byte public key. The program hashes it, re-derives the address, rejects any mismatch and stores the key in prepared form. Initialization is permissionless because a different key always yields a different address. New vaults use version 2 and the same account size. The program supports a Falcon-authorized exit and has no rotate, delegate or admin withdrawal instruction.
| # | Field | Offset | Bytes | Value |
|---|---|---|---|---|
| 01 | Magic | 0 | 8 | ASCII FALQON02 |
| 02 | Nonce | 8 | 8 | u64 LE, strictly increasing |
| 03 | Key fingerprint | 16 | 32 | SHA-256 of the 897 B public key |
| 04 | Deployment domain | 48 | 32 | must equal the program’s domain |
| 05 | Prepared public key | 80 | 1024 | Falcon-512 key in verifier form |
| Total | 1,104 |
Signed intent
The Falcon key signs exactly 178 bytes: fixed-width fields, no length prefixes, one encoding for each authorized action. The program rebuilds this message from the instruction data, its own program ID, the vault and recipient accounts, and its compiled deployment domain. It never trusts a client-supplied message.
| # | Field | Offset | Bytes | Value |
|---|---|---|---|---|
| 01 | Domain tag | 0 | 14 | ASCII FALQON-INTENT\0 |
| 02 | Version | 14 | 1 | 2 |
| 03 | Instruction | 15 | 1 | 1 · withdraw SOL, 2 · close vault |
| 04 | Deployment domain | 16 | 32 | 32 random bytes per deployment |
| 05 | Program ID | 48 | 32 | the invoked program |
| 06 | Vault | 80 | 32 | PDA address |
| 07 | Recipient | 112 | 32 | destination address |
| 08 | Asset | 144 | 1 | 0 · native SOL |
| 09 | Amount | 145 | 8 | u64 LE. Exact amount or minimum close proceeds |
| 10 | Nonce | 153 | 8 | u64 LE, must match the vault |
| 11 | Last valid slot | 161 | 8 | u64 LE, ≤ current + 450 |
| 12 | Fee mode | 169 | 1 | 0 · external fee payer |
| 13 | Reimbursement | 170 | 8 | u64 LE, always 0 |
| Total | 178 |
Withdraw instruction
The instruction carries only what the program can’t derive. The program validates the vault’s owner, magic, domain and PDA derivation. It checks that the nonce matches and that expiry is at most 450 slots ahead. Then it verifies the signature, increments the nonce, debits the vault and credits a writable, non-executable recipient, all in one instruction. Withdrawals can’t dip below the vault’s rent reserve.
| # | Field | Offset | Bytes | Value |
|---|---|---|---|---|
| 01 | Tag | 0 | 1 | 1 |
| 02 | Amount | 1 | 8 | u64 |
| 03 | Nonce | 9 | 8 | u64 |
| 04 | Last valid slot | 17 | 8 | u64 |
| 05 | Falcon-512 signature | 25 | 666 | fixed 666 B |
| Total | 691 |
Close vault
Close sends all SOL in the vault, including its rent reserve, to the address authorized by your Falcon key. The signed amount is the minimum the recipient receives. Only the vault owner’s Falcon key authorizes the exit. Stop using the address for deposits after closing it.
A recreated vault starts a fresh nonce generation and prior signatures cannot move its funds.
Attacks and defenses
| Attack | Defense |
|---|---|
| Replay on the same vault | The signed nonce must match the stored nonce and increments with the transfer. |
| Replay on another vault | The vault address is signed. |
| Replay on another network or deployment | A 32-byte deployment domain is compiled into each program and checked against the vault. The program ID is signed, and the client pins the genesis hash. |
| Stale signature | A last-valid slot, at most 450 slots ahead. |
| Changed recipient or amount | Both are signed. |
| Instruction or asset confusion | The version, instruction byte and asset type are signed. A future token instruction uses its own discriminant and binds the full mint. |
| Account substitution | The program re-derives the PDA from the stored fingerprint and checks owner, magic and domain. |
| Key substitution | The vault address commits to SHA-256 of the public key. |
| Malicious fee payer | No vault authority. It can only rebroadcast an intent you already signed. |
| Overflow and drain | Checked arithmetic, and the rent reserve stays in place. |
| Encoding ambiguity | Fixed-width fields and a fixed 666-byte signature representation. |
Transaction budget
Legacy Solana transactions are capped at 1,232 bytes, including signatures, account keys, the blockhash and instruction data. Address lookup tables compress account keys, not signature bytes.
Carries the full 897-byte public key once.
Carries the 666-byte signature plus amount, nonce and expiry.
Serialized, signed legacy transactions with a 400,000 compute-unit budget request. Both fit in one transaction, so no staging accounts are needed.
Key custody
Keys are generated on your device from a cryptographically secure random source. The Falcon signer is compiled to WebAssembly from a reference C implementation and runs locally.
| Plaintext | Falcon public key 897 B, private key 1,281 B, fee-payer seed 32 B (2,210 B) |
|---|---|
| Cipher | AES-256-GCM with a versioned header as associated data |
| Key derivation | PBKDF2-SHA256, 600,000 iterations |
| Salt and IV | Random 16 B salt and 12 B IV for every backup |
| Failure mode | A wrong password or any modified byte fails closed |
| Unlocked session | Non-extractable crypto keys. Buffers are cleared on lock and after 5 minutes idle. |
Trust model
- Program upgrade authority. Whoever controls it can replace the verifier or change withdrawal rules. Check the authority for the program ID on Solana Explorer.
- Transaction envelope. Fees, the fee payer and Solana consensus still use Ed25519. A broken fee-payer key can delay or censor, but it can’t move vault funds.
- Your device. Encryption protects keys at rest. Malware or a malicious extension can read keys while the wallet is unlocked.
- RPC honesty. An RPC node can misreport balances or confirmations, but it can’t forge a withdrawal. Cross-check on an independent explorer.
- Standards. FN-DSA (FIPS 206) is still being finalized. Version 1 has no key rotation, so moving to a new key means withdrawing to a new vault.
Sources
- Falcon specification and parameters
- NIST post-quantum standardization
- Solana transaction structure and size limit
- Solana program-derived addresses
- solana-falcon512 on-chain verifier