compute P2Sh Of P2Wpkh Address
fun computeP2ShOfP2WpkhAddress(pub: PublicKey, chainHash: ByteVector32): String
Content copied to clipboard
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
chain Hash
chain hash (i.e. hash of the genesic block of the chain we're on)