mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
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:
parent
bccd308af3
commit
99ac29c86b
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user