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

58 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-12-23 23:11:00 +00: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-23 23:11:00 +00:00
export class HDSegwitBech32Wallet extends AbstractHDElectrumWallet {
2024-03-15 23:05:15 +03: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 17:22:23 +01:00
2019-12-23 23:11:00 +00:00
allowSend() {
return true;
}
allowRBF() {
return true;
}
2020-09-21 20:32:20 +01:00
allowPayJoin() {
return true;
}
2021-02-18 16:37:43 +03:00
allowCosignPsbt() {
return true;
}
2021-03-09 14:26:56 +03:00
2021-09-09 12:00:11 +01:00
isSegwit() {
return true;
}
2021-03-09 14:26:56 +03:00
allowSignVerifyMessage() {
return true;
}
allowMasterFingerprint() {
return true;
}
allowXpub() {
return true;
}
2023-03-15 20:42:25 +00:00
allowBIP47() {
return true;
}
2024-05-30 14:54:29 +01:00
allowSilentPaymentSend(): boolean {
return true;
}
}