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

50 lines
846 B
JavaScript
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 {
static type = 'HDsegwitBech32';
static typeReadable = 'HD SegWit (BIP84 Bech32 Native)';
2021-03-11 13:45:49 +03:00
static segwitType = 'p2wpkh';
static derivationPath = "m/84'/0'/0'";
2019-05-23 17:22:23 +01:00
2019-12-23 23:11:00 +00:00
allowSend() {
return true;
}
allowHodlHodlTrading() {
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;
}
}