2019-12-24 00:11:00 +01:00
|
|
|
import { AbstractHDElectrumWallet } from './abstract-hd-electrum-wallet';
|
2019-05-06 00:17:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* HD Wallet (BIP39).
|
|
|
|
* In particular, BIP84 (Bech32 Native Segwit)
|
|
|
|
* @see https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki
|
|
|
|
*/
|
2019-12-24 00:11:00 +01:00
|
|
|
export class HDSegwitBech32Wallet extends AbstractHDElectrumWallet {
|
2024-03-15 21:05:15 +01:00
|
|
|
static readonly type = 'HDsegwitBech32';
|
|
|
|
static readonly typeReadable = 'HD SegWit (BIP84 Bech32 Native)';
|
|
|
|
// @ts-ignore: override
|
|
|
|
public readonly type = HDSegwitBech32Wallet.type;
|
|
|
|
// @ts-ignore: override
|
|
|
|
public readonly typeReadable = HDSegwitBech32Wallet.typeReadable;
|
|
|
|
public readonly segwitType = 'p2wpkh';
|
|
|
|
static readonly derivationPath = "m/84'/0'/0'";
|
2019-05-23 18:22:23 +02:00
|
|
|
|
2019-12-24 00:11:00 +01:00
|
|
|
allowSend() {
|
|
|
|
return true;
|
2019-05-06 00:17:31 +02:00
|
|
|
}
|
|
|
|
|
2020-03-11 20:16:51 +01:00
|
|
|
allowRBF() {
|
|
|
|
return true;
|
|
|
|
}
|
2020-09-21 21:32:20 +02:00
|
|
|
|
|
|
|
allowPayJoin() {
|
|
|
|
return true;
|
|
|
|
}
|
2021-02-18 14:37:43 +01:00
|
|
|
|
|
|
|
allowCosignPsbt() {
|
|
|
|
return true;
|
|
|
|
}
|
2021-03-09 12:26:56 +01:00
|
|
|
|
2021-09-09 13:00:11 +02:00
|
|
|
isSegwit() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-03-09 12:26:56 +01:00
|
|
|
allowSignVerifyMessage() {
|
|
|
|
return true;
|
|
|
|
}
|
2021-03-23 16:58:13 +01:00
|
|
|
|
|
|
|
allowMasterFingerprint() {
|
|
|
|
return true;
|
|
|
|
}
|
2021-04-15 19:52:48 +02:00
|
|
|
|
|
|
|
allowXpub() {
|
|
|
|
return true;
|
|
|
|
}
|
2023-03-15 21:42:25 +01:00
|
|
|
|
|
|
|
allowBIP47() {
|
|
|
|
return true;
|
|
|
|
}
|
2019-05-06 00:17:31 +02:00
|
|
|
}
|