BlueWallet/class/wallets/hd-segwit-bech32-wallet.ts

54 lines
1.0 KiB
TypeScript
Raw Normal View History

2019-12-24 00:11:00 +01:00
import { AbstractHDElectrumWallet } from './abstract-hd-electrum-wallet';
/**
* 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;
}
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;
}
allowMasterFingerprint() {
return true;
}
allowXpub() {
return true;
}
2023-03-15 21:42:25 +01:00
allowBIP47() {
return true;
}
}