computeP2ShOfP2WpkhAddress

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

Return

the p2swh-of-p2pkh address for this key). It is a Base58 address that is compatible with most bitcoin wallets

Parameters

pub

public key

chainHash

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