Branch: refs/heads/master
  Home:   https://github.com/conformal/btcscript
  Commit: 6c8003b064af105a468ca08a4c2f94c3d66915fc
      
https://github.com/conformal/btcscript/commit/6c8003b064af105a468ca08a4c2f94c3d66915fc
  Author: Dave Collins <[email protected]>
  Date:   2014-01-07 (Tue, 07 Jan 2014)

  Changed paths:
    M address.go
    R address_test.go
    M internal_test.go
    M script.go

  Log Message:
  -----------
  Refactor and improve address extraction code.

This commit significantly changes the address extraction code.  The
original code was written before some of the other newer code was written
and as a result essentially duplicated some of the logic for handling
standard scripts which is used elsewhere in the package.

The following is a summary of what has changed:

- CalcPkScriptAddrHashes, ScriptToAddrHash, and ScriptToAddrHashes have
  been replaced by ExtractPkScriptAddresses
- The ScriptType type has been removed in favor of the existing
  ScriptClass type
- The new function returns a slice of btcutil.Addresses instead of raw
  hashes that the caller then needs to figure out what to do with to
  convert them to proper addressses
- The new function makes use of the existing ScriptClass instead of an
  nearly duplicate ScriptType
- The new function hooks into the existing infrastructure for parsing
  scripts and identifying scripts of standard forms
- The new function only works with pkscripts to match the behavior of the
  reference implementation - do note that the redeeming script from a p2sh
  script is still considered a pkscript
- The logic combines extraction for all script types instead of using a
  separate function for multi-signature transactions
- The new function ignores addresses which are invalid for some reason
  such as invalid public keys


  Commit: e50681264bb8373b82eda9fa1a0416d110741592
      
https://github.com/conformal/btcscript/commit/e50681264bb8373b82eda9fa1a0416d110741592
  Author: Dave Collins <[email protected]>
  Date:   2014-01-07 (Tue, 07 Jan 2014)

  Changed paths:
    A address_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add 100% test coverage for ExtractPkScriptAddrs.


Compare: 
https://github.com/conformal/btcscript/compare/126991b60bc6...e50681264bb8

Reply via email to