mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
7b5204fdaa
* minor enhancement * show camera consent at least once, even if camera permission is granted already * minor enhancement [skip ci] * Add taproot derivation path to electrum_derivations.dart * remove unused import [skip ci] * Initialize Ledger only when necessary * Update app versions
110 lines
3.3 KiB
Dart
110 lines
3.3 KiB
Dart
import 'package:cw_core/wallet_info.dart';
|
|
|
|
Map<DerivationType, List<DerivationInfo>> electrum_derivations = {
|
|
DerivationType.electrum: [
|
|
DerivationInfo(
|
|
derivationType: DerivationType.electrum,
|
|
derivationPath: "m/0'",
|
|
description: "Electrum",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
],
|
|
DerivationType.bip39: [
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/44'/0'/0'",
|
|
description: "Standard BIP44",
|
|
scriptType: "p2pkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/49'/0'/0'",
|
|
description: "Standard BIP49 compatibility segwit",
|
|
scriptType: "p2wpkh-p2sh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/0'/0'",
|
|
description: "Standard BIP84 native segwit",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/86'/0'/0'",
|
|
description: "Standard BIP86 Taproot",
|
|
scriptType: "p2tr",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/0'",
|
|
description: "Non-standard legacy",
|
|
scriptType: "p2pkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/0'",
|
|
description: "Non-standard compatibility segwit",
|
|
scriptType: "p2wpkh-p2sh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/0'",
|
|
description: "Non-standard native segwit",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/44'/0'/0'",
|
|
description: "Samourai Deposit",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/49'/0'/0'",
|
|
description: "Samourai Deposit",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/0'/2147483644'",
|
|
description: "Samourai Bad Bank (toxic change)",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/0'/2147483645'",
|
|
description: "Samourai Whirlpool Pre Mix",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/0'/2147483646'",
|
|
description: "Samourai Whirlpool Post Mix",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/44'/0'/2147483647'",
|
|
description: "Samourai Ricochet legacy",
|
|
scriptType: "p2pkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/49'/0'/2147483647'",
|
|
description: "Samourai Ricochet compatibility segwit",
|
|
scriptType: "p2wpkh-p2sh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/0'/2147483647'",
|
|
description: "Samourai Ricochet native segwit",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
DerivationInfo(
|
|
derivationType: DerivationType.bip39,
|
|
derivationPath: "m/84'/2'/0'",
|
|
description: "Default Litecoin",
|
|
scriptType: "p2wpkh",
|
|
),
|
|
],
|
|
};
|