Updated btcscript API to extract addresses from pkscript