mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-28 06:28:41 +01:00
* add ability to hide accounts * remove import * merge * merge * fix loading accounts when styleSettings are not saved yet * merge * auto-reformat * small fixes * proper reload on card unhide * block hiding last card * fixup * revert formatting-only changes * liner fixes * fix overflows * card layout as separate class to prevent index errors * fix mini card on addresses page * block opening customizers if wallet is syncing * switch to BlocProvider.value to prevent auto dispose * imports * fix fiat balance * Improve homescreen layout and account access * Add homescreen layout regression tests * improve account management w/ education + archival flows * reorganize wallet-specific settings * preserve account archival during dismissal * fix: align account visuals with design feedback * minor account & archival visual corrections * simplify wallet settings + account UI state * generalise education carousel & dismissal tracking * refactor account UI flows + minor improvements * minor refactors and improvement * pass account balances as Money and format at display * use fresh full balance for account archival check * refactor BalanceCard w/ MoneyText + cleanup * minor card_customizer cleanup * rework card customizer flow --------- Co-authored-by: Robert Malikowski <malikowskirobert@gmail.com> Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
cw_bitcoin
Bitcoin-family Electrum wallet implementation used by Cake Wallet (BTC, LTC and derivatives).
Features
- Electrum client and wallet with address/UTXO management and snapshots.
- Derivation via BIP‑39; receive/change chains with per-coin configs.
- Create/sign/broadcast transactions; PSBT helpers and payjoin support.
- Transaction history, priorities, and size-based fee calculations.
- Hardware wallet support for BTC/LTC.
Getting started
Use the module via app services (see bitcoin_wallet_service.dart, litecoin_wallet_service.dart). Ensure Electrum nodes are configured for the target coin.
final wallet = await BitcoinWallet.create(
mnemonic: '...',
password: 'secret',
walletInfo: walletInfo,
unspentCoinsInfo: unspentCoinsBox,
encryptionFileUtils: encryption,
);
Usage
Send BTC with medium priority:
final feeRate = wallet.feeRate(BitcoinTransactionPriority.medium);
final pending = await wallet.createTransaction(
outputs: [BitcoinTransactionOutput(address: 'bc1...', amount: 50000)],
feeRate: feeRate,
);
final txHash = await pending.commit();
See lib/ for wallet/services, PSBT, and payjoin utilities.