Branch: refs/heads/master
  Home:   https://github.com/conformal/btcutil
  Commit: bcb009075bd5f825e57381fab5c135b0eb140953
      
https://github.com/conformal/btcutil/commit/bcb009075bd5f825e57381fab5c135b0eb140953
  Author: Josh Rickmar <[email protected]>
  Date:   2014-04-20 (Sun, 20 Apr 2014)

  Changed paths:
    M address.go
    M address_test.go
    M test_coverage.txt

  Log Message:
  -----------
  Add method to access P2PKH and P2SH hash arrays.

This change adds the Hash160 methods to AddressPubKeyHash and
AddressScriptHash so the hash may be accessed as an array, rather than
a byte slice with the ScriptAddress method of the Address interface.
In situations where arrays are more appropiate than slices (such as
for map keys), accessing the array directly this way can significantly
improve performance by reducing copying into local arrays.


Reply via email to