compute P2Wpkh Address
fun computeP2WpkhAddress(pub: PublicKey, chainHash: ByteVector32): String
Content copied to clipboard
Return
the BIP84 address for this key (i.e. the p2wpkh address for this key). It is a Bech32 address that will be understood only by native sewgit wallets
Parameters
pub
public key
chain Hash
chain hash (i.e. hash of the genesic block of the chain we're on)