Branch: refs/heads/master
  Home:   https://github.com/conformal/btcutil
  Commit: 2539ca986029f25880b91460d3f4be4e961b33e9
      
https://github.com/conformal/btcutil/commit/2539ca986029f25880b91460d3f4be4e961b33e9
  Author: Dave Collins <[email protected]>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M hdkeychain/extendedkey.go
    M hdkeychain/extendedkey_test.go

  Log Message:
  -----------
  Fix hdkeychain to avoid zeroing net version bytes.

This commit corrects the Zero function in hdkeychain to nil the version
instead of zeroing the bytes.  This is necessary because the keys are
holding onto a reference into the specific version bytes for the network
as provided by the btcnet package.  Zeroing them causes the bytes in the
btcnet package to be zeroed which then leads to issues later when trying
to use them.

Also, to prevent regressions, new tests have been added to exercise this
scenario.

Pointed out by @jimmysong.


Reply via email to