2023-08-24 15:20:04 +00:00
|
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
|
|
|
|
Map<DerivationType, List<DerivationInfo>> bitcoin_derivations = {
|
2024-04-25 22:30:59 +00:00
|
|
|
DerivationType.electrum: [
|
2023-08-24 15:20:04 +00:00
|
|
|
DerivationInfo(
|
2024-04-25 22:30:59 +00:00
|
|
|
derivationType: DerivationType.electrum,
|
|
|
|
derivationPath: "m/0'/0",
|
|
|
|
description: "Electrum",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-09-05 16:04:19 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
DerivationType.bip39: [
|
2023-08-24 15:20:04 +00:00
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/44'/0'/0'",
|
2023-09-12 14:33:15 +00:00
|
|
|
description: "Standard BIP44",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2pkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/49'/0'/0'",
|
|
|
|
description: "Standard BIP49 compatibility segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh-p2sh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/84'/0'/0'",
|
|
|
|
description: "Standard BIP84 native segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/0'",
|
|
|
|
description: "Non-standard legacy",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2pkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/0'",
|
|
|
|
description: "Non-standard compatibility segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh-p2sh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/0'",
|
|
|
|
description: "Non-standard native segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/44'/0'/0'",
|
|
|
|
description: "Copay native segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
2024-04-26 14:20:56 +00:00
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
2024-04-26 16:26:36 +00:00
|
|
|
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'/0'",
|
2024-04-26 14:20:56 +00:00
|
|
|
description: "Samourai Deposit",
|
|
|
|
scriptType: "p2wpkh",
|
|
|
|
),
|
2023-08-24 15:20:04 +00:00
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/84'/0'/2147483644'",
|
|
|
|
description: "Samourai Bad Bank (toxic change)",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/84'/0'/2147483645'",
|
|
|
|
description: "Samourai Whirlpool Pre Mix",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/84'/0'/2147483646'",
|
|
|
|
description: "Samourai Whirlpool Post Mix",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/44'/0'/2147483647'",
|
|
|
|
description: "Samourai Ricochet legacy",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2pkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/49'/0'/2147483647'",
|
|
|
|
description: "Samourai Ricochet compatibility segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh-p2sh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
DerivationInfo(
|
|
|
|
derivationType: DerivationType.bip39,
|
|
|
|
derivationPath: "m/84'/0'/2147483647'",
|
|
|
|
description: "Samourai Ricochet native segwit",
|
2024-04-26 01:36:28 +00:00
|
|
|
scriptType: "p2wpkh",
|
2023-08-24 15:20:04 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
};
|