Branch: refs/heads/master
  Home:   https://github.com/conformal/btcwire
  Commit: df3469a79281028b6a7b93bb133e4c32e2fb9aa5
      
https://github.com/conformal/btcwire/commit/df3469a79281028b6a7b93bb133e4c32e2fb9aa5
  Author: Josh Rickmar <[email protected]>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M shahash.go

  Log Message:
  -----------
  Improve ShaHash.String comment and implementation.

The hash is not displayed big endian, but rather as a byte-reversed
hash as a hexidecimal string, so document it as such.

While here, speed up the function.  Some benchmarks:

BenchmarkShaHashString   2000000               996 ns/op
BenchmarkShaHashStringOld         100000             22701 ns/op


Reply via email to