chaincfg: Rename extended key accessor funcs.

This renames the recently introduced accessor functions for obtaining
the hierarchical deterministic extended private and public key magic
version bytes based on feedback.

Ordinarily this would require a major module version bump, however,
since a new version with the functions has not been released yet, it is
acceptable to rename them without breaking callers.
This commit is contained in:
Dave Collins 2019-03-22 16:00:22 -05:00
parent bccd308af3
commit 99ac29c86b
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -481,15 +481,15 @@ type Params struct {
BlockOneLedger []*TokenPayout
}
// XPrivKeyID returns the hierarchical deterministic extended private key magic
// version bytes for the network the parameters define.
func (p *Params) XPrivKeyID() [4]byte {
// HDPrivKeyVersion returns the hierarchical deterministic extended private key
// magic version bytes for the network the parameters define.
func (p *Params) HDPrivKeyVersion() [4]byte {
return p.HDPrivateKeyID
}
// XPubKeyID returns the hierarchical deterministic extended public key magic
// version bytes for the network the parameters define.
func (p *Params) XPubKeyID() [4]byte {
// HDPubKeyVersion returns the hierarchical deterministic extended public key
// magic version bytes for the network the parameters define.
func (p *Params) HDPubKeyVersion() [4]byte {
return p.HDPublicKeyID
}