computeP2WpkhAddress

fun computeP2WpkhAddress(pub: PublicKey, chainHash: ByteVector32): String

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

chainHash

chain hash (i.e. hash of the genesic block of the chain we're on)