decode Witness Address
fun decodeWitnessAddress(address: String): Triple<String, Byte, ByteArray>
Content copied to clipboard
decode a bitcoin witness address
Return
a (prefix, version, program) tuple where prefix is the human-readable prefix, version is the witness version and program the decoded witness program. If version is 0, it will be either 20 bytes (P2WPKH) or 32 bytes (P2WSH).
Parameters
address
witness address