Commit Graph
4170 Commits
Author SHA1 Message Date
Blazebrain 87a03fc88d Merge branch 'dev' of https://github.com/cake-tech/cake_wallet into CW-1529-Improved-Seed-UI 2026-09-01 10:32:55 +01:00
Blazebrain 323a1df6e9 feat: remind users with a balance to back up their recovery phrase 2026-09-01 10:01:07 +01:00
Konstantin UllrichandGitHub df87bab836 feat: add fallback locktime support in PSBT deserialization (#3583) 2026-09-01 14:52:57 +08:00
Omar 6df6108d37 update app version 2026-08-29 15:37:13 +08:00
Blazebrain 837c4d7d22 feat: redesign the pre-seed and seed verification screens 2026-08-28 23:07:43 +01:00
Blazebrain e95d9d143e feat: persist whether a wallet still needs its recovery phrase backed up 2026-08-28 23:07:43 +01:00
Blazebrain 9a66b511e3 feat: add recovery phrase wording for the redesigned seed flow 2026-08-28 23:07:43 +01:00
905db64f77 feat: zano hf + bip39 (#3359)
* feat: bip39 zano hf

* fix: correct monero_c hash

* lockfile [skip ci]

* fix: zano: proper bip32
fix: zano respect 24 word setting
fix: rename / delete

* fix: nonBip39WalletTypes

* fix: zano wallet rename

* fix: passphrase store zano

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2026-08-28 15:49:51 +08:00
Omar HatemandGitHub 14167a85e8 v6.4.2 (#3566)
* Rush Release please test quickly

* Fix Zcash Lag
2026-08-28 10:07:16 +08:00
cyanandGitHub 3ba43ede62 Cyjan zec mutex 2 (#3569)
* fix: mutex on zec

* refactor: simplify orchard migratable balance checks and update related methods
2026-08-27 10:58:22 +08:00
David AdegokeandGitHub 06e75551a7 CW-1615: Harden walletconnect auth (#3547)
* fix android CI

* fix: harden walletconnect auth so a connected session won't transfer on dApp when wallet is switched within the app

* refactor: improve session mgmt and better error handling, also added a loader to the listing page

* feat: switch to newer id for solana dapps connections and fix requests not triggering
2026-08-26 11:45:03 +08:00
Konstantin UllrichandGitHub bd36227974 Update breez_sdk_spark_flutter to v0.23.0 and adjust pubspec overrides (#3558)
* chore: update `breez_sdk_spark_flutter` to v0.23.0 and update pubspec overrides

* feat: use latest breez sdk
2026-08-26 01:29:41 +08:00
cyanandGitHub 3d9b79f536 feat: bip39 decred (#3348) 2026-08-26 01:01:52 +08:00
malik1004xandGitHub b72c5c3232 fix icons in card customizer in light theme (#3552) 2026-08-24 23:35:48 +03:00
malik1004xandGitHub 9b50011e75 Hide broken options in Bitcoin wallets without a private key (#3532)
* hide unavailable receive page options

* hide broken options in wallets without a private key

* hide exporting unavailable logs

* hide sign/verify on airgapped wallets

* hide mweb on hwws

* hide mweb ad for hww
2026-08-24 23:24:52 +03:00
David AdegokeandGitHub 703cc22b33 fix: solana wallet bugs and security issues (#3484)
* fix android CI

* fix: duplicate outgoing tx for jup swaps and stuck pending state

* fix solana security risk by handling duplicate token symbols in wallet transactions

* feat: implement additional cost handling for pending transactions in Solana wallet.

* fix: Items on security audit list for solana wallet

* refactor: streamline fee payer index handling and improve error logging

* fix: verifySignature for solana and handle wrong mint on default token

* fix: token decimals defaulting to zero and breaking amount parsing in solana

* fix: use token mask in tx history

* refactor: apply lint to modified code

* fix: merge conflicts

* fix: use Money and mint decimals when parsing sol swaps

* test: add unit tests for SPL token amount handling and parsing

* test: add more tests

* fix: update decimal handling for fetched token and remove unused fields
2026-08-24 23:21:29 +03:00
malik1004xandGitHub f97e09cfc5 Merge pull request #3557 from cake-tech/claude/light-mode-checkbox-background 2026-08-24 21:20:47 +02:00
Claude a8ca70b43d fix(ui): make unchecked NewSimpleCheckbox visible in light themes
The unchecked background resolved to colorScheme.surfaceContainerHighest,
which is pure white in LightTheme, so the unselected checkbox was an
invisible white disc on near-white list rows. In light brightness use
onSurfaceVariant with alpha 80 instead; dark themes are unchanged.
2026-08-24 16:00:46 +00:00
Konstantin UllrichandGitHub c838012979 Enhance Money class with precision handling and zero trimming (#3548)
* feat: enhance Money class with precision handling, scale alignment, and trailing zero trimming
2026-08-24 14:48:32 +02:00
malik1004xandGitHub 8649c055e0 Merge pull request #3551 from cake-tech/fix-rive-common-dep
fix rive_common dependency
2026-08-24 14:30:30 +02:00
Robert Malikowski 9d30225211 fix rive_common dependency 2026-08-23 21:28:35 +02:00
419d8cdeb4 fix: generic fixes after anypay (#3543)
* fix android CI

* feat: add anypay core models, parser and routing engine

* feat: add anypay resolver, anypay service and wallet switch service

* refactor: route the send page payment flow through anypay service

* fix: show message when there's no swap providers for a pair and reset the trade guard on dismissal

* refactor: merge the swap from network and send to network decision pages together and clean up anypay widgets

* feat: reapply deep links to a currently open send flow and register the solana scheme

* feat: add support for zcash address detection to anypay and other minor fixes

* refactor: remove trailing icon

* feat: hide swap flow for sp and mweb addresses

* feat: enhance zcash address detection and deeplink handling

* fix: pin bitcoin_base

* refactor: Move the anypay decision navigation out of the send page and address minor review comments

* refactor: Move the anypay decision navigation out of the send page and address minor review comments

* feat: handle exception in switch service and mvoe balance compute to call site

* refactor: combine anypay entry points to one and extract selected mode widget

* fix: tx priority for doge

* chore: add dogecoin to isElectrumWallet util

* fix: annoying mobx error

---------

Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
2026-08-22 14:10:19 +02:00
malik1004xandGitHub 484f42aa8b fix tx history scroll behavior (#3549) 2026-08-21 20:10:04 +02:00
BSN ∞/21MandGitHub 8eddd4d481 26-08-19_Update Transöation_de_DE (#3537) 2026-08-21 12:33:26 +02:00
malik1004xandGitHub c248a53a35 hide keyboard after restoring backup on ios (#3533) 2026-08-20 23:14:47 +02:00
malik1004xandGitHub 517612095b safeguard calls to coin integration classes (#3534) 2026-08-20 23:14:12 +02:00
cyanandGitHub e9dec67522 bump: torch_dart (#3542) 2026-08-20 16:52:53 +02:00
Seth For PrivacyandGitHub c9974673c1 a11y: decorative/meaningful image semantics, labeled icon buttons, audible addresses (#3465) 2026-08-20 16:40:07 +02:00
3b100eae33 CW1612: AnyPay Service Layer (#3516)
* fix android CI

* feat: add anypay core models, parser and routing engine

* feat: add anypay resolver, anypay service and wallet switch service

* refactor: route the send page payment flow through anypay service

* fix: show message when there's no swap providers for a pair and reset the trade guard on dismissal

* refactor: merge the swap from network and send to network decision pages together and clean up anypay widgets

* feat: reapply deep links to a currently open send flow and register the solana scheme

* feat: add support for zcash address detection to anypay and other minor fixes

* refactor: remove trailing icon

* feat: hide swap flow for sp and mweb addresses

* feat: enhance zcash address detection and deeplink handling

* fix: pin bitcoin_base

* refactor: Move the anypay decision navigation out of the send page and address minor review comments

* refactor: Move the anypay decision navigation out of the send page and address minor review comments

* feat: handle exception in switch service and mvoe balance compute to call site

* refactor: combine anypay entry points to one and extract selected mode widget

---------

Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
2026-08-20 09:35:44 +02:00
David AdegokeandGitHub 4cc1495686 Migrate EVM/Sol/TRX tokens to SQL (#3450)
* fix android CI

* feat: Migrate EVM, Sol and Tron tokens to SQL

* handle rename edgecase

* refactor: enhance token migration logic and improve database handling
2026-08-20 03:19:05 +02:00
SerhiiandGitHub 887e01a7e7 near intents btc asset id migration (#3536) 2026-08-19 22:12:54 +02:00
Konstantin UllrichandGitHub 86906a7f85 fix: move updateBleState to connection page initialization (#3539) 2026-08-19 22:11:23 +02:00
cyanandGitHub adef1006a7 fix: bitcoin_base (#3541) 2026-08-19 20:26:19 +02:00
Omar 9b2aec6e7c update bitcoin base commit hash 2026-08-19 20:18:34 +02:00
CindyandGitHub 3b098e35ff Privacy: randomized coin selection (BnB changeless + single random draw) (#3408)
* Randomize coin selection with single random draw

The greedy selection walked the unspent pool in a predictable order (address generation order, then per-address server order), a fingerprint an analyst can exploit. Shuffle the pool before the accumulate-until-covered loop so the input set is chosen non-deterministically (single random draw). MWEB coins are still kept last.

Branch-and-bound (changeless exact match) is a larger follow-up.

* Add BnB + SRD coin selection primitives

Pure, wallet-independent coin selector: branch-and-bound for an exact
changeless match within the cost-of-change window, single-random-draw
fallback (shuffled, injectable RNG) when no exact match exists, and
selectCoins tying them together over effective values.

This is the basis for replacing the greedy accumulation in _createUTXOS
so sends produce no change when possible and a non-deterministic
selection otherwise. Validated with dart test (9 cases); wiring into
_createUTXOS is a separate step.

* Use BnB changeless matching in coin selection

Before the shuffled greedy walk, run branch-and-bound over effective
values (value minus per-input fee cost) looking for an input set whose
excess over amount plus fee stays below dust. When found, order those
inputs first and cap the walk at their count: the caller then computes
a change below dust, drops the change output, and absorbs the residue
into the fee, producing a changeless transaction with no residual
change fingerprint.

When no match exists, selection falls back to the shuffled pool, which
the greedy walk turns into a single random draw. BnB is skipped for
sendAll, forced input counts and pools holding MWEB coins.

changelessMatch filters non-positive effective values and maps indices
back to the original pool.

* Cover changeless fee bounds and BnB termination

Assert the end-to-end arithmetic the wallet performs around a
branch-and-bound match: with the 68/34/10 vBytes model, the leftover
the caller absorbs into the fee is never negative (no re-selection
loop) and never exceeds the dust limit (bounded fee overpay).

Also pin termination: a large pool with no possible match returns null
through the maxTries cap instead of exploring the full search tree.

* Use a secure RNG for coin selection randomness

The selection shuffle and the single-random-draw fallback exist to be
unpredictable, so seed them from Random.secure() instead of the default
PRNG, matching what Core and bdk use for coin selection. Pool sizes are
small, so the cost is negligible. Tests keep injecting a seeded Random
for determinism.

* Randomize RBF and payjoin input candidate order

Two secondary paths still consumed unspentCoins in wallet scan order
(address generation order, then per-address age), the same predictable
order removed from the main selection path:

- replaceByFee walked the unused-UTXO list in scan order when the fee
  bump needed extra inputs
- the payjoin receiver handed input candidates to the payjoin library
  in scan order, letting ties inside its selection mirror that order

Shuffle both with a secure RNG so no input-selection path exposes the
wallet's address or coin age ordering.

* ci: skip Linux PR build on forks (no secrets access)

* Account for script-type sizes in changeless matching

* Keep coin selection order stable within a transaction build
2026-08-19 12:51:46 +02:00
ca00370ca4 Set anti-fee-sniping locktime (exact-tip) on bitcoin sends (#3385)
* Set anti-fee-sniping locktime on bitcoin sends

Current tip (exact-tip) via shared helper, wired into normal sends (path A) and payjoin/PSBT (path B). 0 when unsynced. Converges with the exact-tip cluster (payjoin-cli, ldk-node, Bull Bitcoin) and skips the ~10% backdate.

* Update cw_bitcoin/lib/locktime.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update cw_bitcoin/lib/locktime.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update cw_bitcoin/lib/locktime.dart [skip ci]

---------

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2026-08-19 12:43:59 +02:00
cyanandGitHub 2ed93f40b1 fix: linux sqlite issue (#3519) 2026-08-19 11:34:02 +02:00
cyanandGitHub be694edcc4 feat: pin all dependencies to git sources (#3381) 2026-08-18 16:34:01 +02:00
Konstantin UllrichandGitHub 1f0f51fec5 refactor: remove toDouble method and reverted other changes (#3531) 2026-08-18 15:12:58 +02:00
cyanandGitHub 026a171c66 fix: allow spending with LAN-only node (#3529) 2026-08-17 14:09:09 +02:00
malik1004xandGitHub dc4c753a00 Merge pull request #3528 from cake-tech/money-to-string-lint 2026-08-17 08:57:25 +02:00
Seth For PrivacyandGitHub 86db89913b fix: sanitize Electrum fee estimates (#3499)
* fix: sanitize Electrum fee estimates

* chore: drop test changes from this PR

Removes the test additions/modifications introduced by this branch so the
test design is left to the maintainers. Production code is unchanged.
2026-08-16 11:01:51 +02:00
Seth For PrivacyandGitHub 8a366129f8 fix: validate EVM restore mnemonic checksum (#3498)
* fix: validate EVM restore mnemonics

* chore: drop test changes from this PR

Removes the test additions/modifications introduced by this branch so the
test design is left to the maintainers. Production code is unchanged.
2026-08-16 10:57:47 +02:00
Robert Malikowski 8d6b3cd85d add lint and quick-fixes for Money.amount.toString() 2026-08-15 14:34:11 +02:00
8f38ba6b17 v6.4.1 Release Candidate (#3506)
* v6.4.1 Release Candidate

* fix changelog overflow (#3510)

* update ios min version

---------

Co-authored-by: malik1004x <malikowskirobert@gmail.com>
2026-08-12 08:51:01 +02:00
David AdegokeandGitHub 414b2eadee fix: anypay (#3507)
* fix android CI

* fix: handle the parser seeing chainless QRs in the old flow as belonging to the current wallet, causing the error jack reported

* fix: handle network switch when anypay is interrupted mid flow and currency is changed
2026-08-12 01:14:39 +02:00
malik1004xandGitHub 3a71f6ad33 "synced" indicator (#3512)
* "synced" indicator

* safeguards
2026-08-11 19:00:10 +02:00
malik1004xandGitHub 26bc7bda3d add compile graphics to linux ci (#3509) 2026-08-11 14:05:45 +02:00
19653afeab fix: sorting of transactions (#3494)
* fix: zcash address for exchange

* fix: honour the restore height the user entered

- Make Zcash rescan work in both directions by resetting sync from the new birth height
- Keep the entered height when restoring a wallet from keys
- Tolerate grouping separators in typed restore heights

* fix: sorting of transactions
fix: tx fee for outgoing transactions

---------

Co-authored-by: Vik Sharma <vik@cakewallet.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2026-08-11 03:18:06 +02:00
3b16f2fb7c fix: zcash address for exchange (#3491)
* fix: zcash address for exchange

* fix: honour the restore height the user entered

- Make Zcash rescan work in both directions by resetting sync from the new birth height
- Keep the entered height when restoring a wallet from keys
- Tolerate grouping separators in typed restore heights

---------

Co-authored-by: Vik Sharma <vik@cakewallet.com>
2026-08-11 03:15:59 +02:00