MultiBit HD / Technical library
INDEPENDENT KEYCHAINX RESOURCE
WalletType: software, beta and hardware families
Separates the BIP32 software wallet, the noncompliant beta-era wallet and hardware-related families. Comments document the first receiving-key paths. These distinctions should be retained when selecting a recovery method.
Source inspection only. Historical Java code; not executed or security-audited for this publication.
mbhd-core/src/main/java/org/multibit/hd/core/dto/WalletType.java
View the exact upstream file · Read raw source · License notices
SHA-256: 3dba76de6584307e8eb154627d10046ac3ee18175608e620fb2e3d8972da6940
1package org.multibit.hd.core.dto;23/**4 * <p>Enum to provide the following to Core API:</p>5 * <ul>6 * <li>Types of wallet e.g. MultiBit HD soft wallet, Trezor hard wallet, Trezor soft wallet</li>7 * </ul>8 *9 * @since 0.0.110 * 11 */12public enum WalletType {1314 /**15 * MultiBit HD soft wallet (BIP 32 compliant)16 * Wallet is BIP 32 compliant17 * m/0' (Account 1 only)18 * m/0'/0/0 is first receiving key19 */20 MBHD_SOFT_WALLET_BIP32(CoreMessageKey.WALLET_CAPABILITY_MBHD_SOFT_BIP32),2122 /**23 * MultiBit HD soft wallet (Beta 7 wallet)24 * This was the first attempt at a BIP32 wallet and was NOT compliant25 * (see https://github.com/keepkey/multibit-hd/issues/445)26 *27 * Wallet is NOT BIP 32 compliant28 * m/0'29 * m/0'/0/0 is first receiving key30 *31 * DO NOT RENAME THIS ENUM VALUE AS IT IS STORED IN THE WALLET AS AN EXTENSION32 */33 MBHD_SOFT_WALLET(CoreMessageKey.WALLET_CAPABILITY_MBHD_SOFT_BETA7),3435 /**36 * Trezor / KeepKey wallet with no keys37 * Wallet follows BIP44 account 0 and requires a Trezor to do the signing38 * m/44'/0'/0'/0/0 is first receiving key39 *40 * DO NOT RENAME THIS ENUM VALUE AS IT IS STORED IN THE WALLET AS AN EXTENSION41 */42 TREZOR_HARD_WALLET(CoreMessageKey.WALLET_CAPABILITY_TREZOR_CLONE_HARD),4344 /**45 * Trezor / KeepKey soft wallet46 * Wallet has BIP44 account 0 keys only47 * m/44'/0'/0'/0/0 is first receiving key48 *49 * DO NOT RENAME THIS ENUM VALUE AS IT IS STORED IN THE WALLET AS AN EXTENSION50 */51 TREZOR_SOFT_WALLET(CoreMessageKey.WALLET_CAPABILITY_TREZOR_CLONE_SOFT),5253 /**54 * A wallet with unknown capabilities (most likely from the future)55 */56 UNKNOWN(CoreMessageKey.WALLET_CAPABILITY_UNKNOWN)5758 // End of enum59 ;6061 private final CoreMessageKey key;6263 /**64 * @param key The core message key describing the wallet type in user friendly localised terms65 */66 WalletType(CoreMessageKey key) {67 this.key = key;68 }6970 /**71 * @return The message key providing the localised description72 */73 public CoreMessageKey getKey() {74 return key;75 }76}Read in context
Separates the BIP32 software wallet, the noncompliant beta-era wallet and hardware-related families. Comments document the first receiving-key paths. These distinctions should be retained when selecting a recovery method.
Compare the callers, dependency versions and corresponding tests. The pinned file is one part of a larger application. Do not execute write, prune or migration routines against your only copy of a wallet.