Repository navigation
Blazecoin Lite Wallet 1.3.1 (Android + web)
Blazecoin Lite Wallet 1.3.1 — Android and web
Security release for the lite wallet heads (Android APK, web wallet). The desktop wallet is not
affected: it verifies against its own full node and never relies on a gateway's merkle proof.
Fixed
-
Merkle inclusion proofs are now proven to be on the chain. The lite wallet checks that a coin
it is about to spend is really mined by verifying a merkle proof from the gateway. That check
compared the block header's scrypt hash only against the target in the header's ownnBits,
never checked that target against the network minimum, and did not confirm the block is on the
chain. A dishonest gateway could therefore fabricate a proof cheaply — an absurdnBitspasses
after a couple of nonces, and even at the network minimum a standalone header costs only about
2^20 scrypt hashes. No theft was possible (the txid binding, real-value parsing and ownership
checks all held); the effects were a send the network would reject and a transaction page that
claimed more verification than had been done.Now:
nBitsmust be in range (0 < target ≤ powLimit; a set sign bit is rejected) before the hash
is compared.- Whenever a header feed is available, a proof only counts if its block is proven to be the
chain's block at the claimed height. The wallet ships a table of trusted block hashes (one every
1,000 heights from genesis) and learns new ones as it syncs; it fetches the headers from the
coin's block up to the next trusted hash and checks every prev-hash link. A hash chain ending on
a trusted hash cannot be forged whatever the headers' difficulty. This applies to sends,
address-reveal gating and the transaction page. - The transaction page says "Not yet independently confirmed" for a block the wallet cannot yet
place, and "Not on the real chain" for a proven contradiction, instead of calling a standalone
proof "valid".
-
Header sync recovers from a reorg. If the block at the wallet's verified tip is orphaned, the
sync now rewinds to the nearest trusted hash below and re-syncs instead of stalling.
Also
- Fresh installs start from a new header checkpoint (block 4,368,000), so the first sync is short.
- Home → transaction page passes the block height so the page can verify the block on the chain.
Credit
Reported through the bug bounty by Jacob Anderson (static source review). Thank you.
Files
| File | SHA-256 |
|---|---|
blazecoin-wallet-1.3.1.apk (Android, versionCode 7, sideload) |
c27e74db0579f9875d35be7485f190044ae3ed41b385e2d2196e57fb86ce2ce3 |
The web wallet is live at https://gw.blazecoin.co.uk and https://gw2.blazecoin.co.uk — reload to pick
up the new build. Sideload: download the APK, allow installs from your browser when Android asks,
and install over 1.3.0 (same signing key; your wallet and settings are kept).