Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 21, 2021
1 parent 61a25a8 commit c9abdeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hd_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func GetAddressStringFromHDKey(hdKey *hdkeychain.ExtendedKey) (string, error) {
}

// GetPublicKeysForPath gets the PublicKeys for a given derivation path
// Uses the standard m/0/0 (internal) and m/0/1 (external) paths
// Uses the standard m/0/0 (external) and m/0/1 (internal) paths
// Reference: https://en.bitcoin.it/wiki/BIP_0032#The_default_wallet_layout
func GetPublicKeysForPath(hdKey *hdkeychain.ExtendedKey, num uint32) (pubKeys []*bsvec.PublicKey, err error) {

Expand All @@ -164,7 +164,7 @@ func GetPublicKeysForPath(hdKey *hdkeychain.ExtendedKey, num uint32) (pubKeys []
return
}

// Get the internal pubkey from m/0/x
// Get the external pubkey from m/0/x
var pubKey *bsvec.PublicKey
if pubKey, err = childM0x.ECPubKey(); err != nil {
// Should never error since the previous method ensures a valid hdKey
Expand All @@ -179,7 +179,7 @@ func GetPublicKeysForPath(hdKey *hdkeychain.ExtendedKey, num uint32) (pubKeys []
return
}

// Get the external pubkey from m/1/x
// Get the internal pubkey from m/1/x
if pubKey, err = childM1x.ECPubKey(); err != nil {
// Should never error since the previous method ensures a valid hdKey
return
Expand Down

0 comments on commit c9abdeb

Please sign in to comment.