Branch: refs/heads/master
Home: https://github.com/conformal/btcscript
Commit: 3d60bac2386ce1d1cbf49bc4c737178b08434b45
https://github.com/conformal/btcscript/commit/3d60bac2386ce1d1cbf49bc4c737178b08434b45
Author: Dave Collins <[email protected]>
Date: 2014-01-03 (Fri, 03 Jan 2014)
Changed paths:
M script.go
Log Message:
-----------
Add new funcs for creating payment scripts.
This commit adds two new functions named PayToScriptHashScript and
PayToAddrScript. The first one creates and returns a public-key script
which pays to the provided script hash and conforms to BIP0016.
The second function takes the new btcutil.Address interface type and
returns an appropriate script to pay to the address type in the interface.
It currently works for btcutil.AddressPubKeyHash and
btcutil.AddressScriptHash.