btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
477 stars 410 forks source link

hdkeychain: Correct extended privkey serialization. #67

Closed davecgh closed 8 years ago

davecgh commented 8 years ago

This corrects an issue with the serialization of extended private keys where certain underlying derivations could cause lead to printing extended privkeys that did not have the expected xprv prefix.

In addition, tests for private key derivation have been added as well as a specific test which triggers the previously failing case.

Review on Reviewable

jrick commented 8 years ago

ok