keys/hd/address.go
func WIFFromPrivKeyBytes(privKeyBytes []byte, compress bool) string {
	versionPrefix := btcPrefixPrivKey // TODO Make const or configurable
	bytes := append([]byte{versionPrefix}, privKeyBytes...)
	if compress {
		bytes = append(bytes, byte(1))
	}
	checksum := CalcHash256(bytes)
	bytes = append(bytes, checksum[:4]...)
	return base58.Encode(bytes)
}
func WIFFromPrivKeyBytes(privKeyBytes []byte, compress bool) string {
	versionPrefix := btcPrefixPrivKey // TODO Make const or configurable
	bytes := append([]byte{versionPrefix}, privKeyBytes...)
	if compress {
		bytes = append(bytes, byte(1))
	}
	checksum := CalcHash256(bytes)
	bytes = append(bytes, checksum[:4]...)
	return base58.Encode(bytes)
}
// WIFFromPrivKeyBytes returns the privKeyBytes in Wallet Import Format.