cryptocoinjs/btc-script — pull request #2 by sidazhang (2014-01-19 01:20:28+00:00)
Title: outputScript address type checking and remove pay to script

My editor automatically removes excess trailing whitespaces so I just realized the diff file is a bit messy

The main change is here:
https://github.com/cryptocoinjs/btc-script/compare/bugfix-script?expand=1#diff-1635b4f24e4bb7c1006e010d10362130R302

1. type checking for whether address is string and address object
https://github.com/cryptocoinjs/btc-transaction/blob/master/lib/transaction.js#L130

2. remove pay to script hash
A normal address comes with an address version. I think we need to rethink how to optionally create pay to script hash. We should still default to pay to hash160 transactions.