P2WPKHAddress.fromPublicKey constructor
P2WPKHAddress.fromPublicKey(
- ECPublicKey pubkey, {
- required String hrp,
Constructs a P2WPKH address from a pubkey
Implementation
P2WPKHAddress.fromPublicKey(ECPublicKey pubkey, { required String hrp })
: this.fromHash(hash160(pubkey.data), hrp: hrp);