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

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

  Log Message:
  -----------
  Add new function on extended keys to zero them.

This commit adds a new function named Zero on the hdkeychain.ExtendedKey
which can be used to manually clear the memory used for an extended key.
This is useful for enhanced security by allowing the caller to explicitly
clear the memory when they're done with a key.  Otherwise it might hang
around in memory for a while.

Once a key has been zeroed it is no longer usable.

This commit also contains tests to ensure everything works as expected
after a key has been zeroed.


Reply via email to