conformal/btcutil — pull request #15 by davecgh (2014-09-08 19:25:08+00:00)
Title: Fix hdkeychain to avoid zeroing net version bytes.

This commit correct 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.