have both script_to_address and script_to_pubkey functions