pub fn extract_destination(
    script_pub_key: &Script,
    address_ret: &mut TxDestination
) -> bool
Expand description

| Parse a standard scriptPubKey for the | destination address. Assigns result | to the addressRet parameter and returns | true if successful. Currently only | works for P2PK, P2PKH, P2SH, P2WPKH, | and P2WSH scripts. |