Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 62432a6f9089095510eb43dd8c4f272bdaa8414f
https://github.com/btcsuite/btcd/commit/62432a6f9089095510eb43dd8c4f272bdaa8414f
Author: Dave Collins <[email protected]>
Date: 2015-03-09 (Mon, 09 Mar 2015)
Changed paths:
M wire/msgblock.go
M wire/msgtx.go
M wire/msgtx_test.go
Log Message:
-----------
wire: Add func to get pkscript locs from a tx.
This commit provides a new function named PkScriptLocs on the MsgTx type
which can be used to efficiently retrieve a list of offsets for the public
key scripts for the serialized form of the transaction.
This is useful for certain applications which store fully serialized
transactions and want to be able to quickly index into the serialized
transaction to extract a give public key script directly thereby avoiding
the need to deserialize the entire transaction.