Merge pull request #3334 from guggero/fix-derivation-comments

keychain: fix comment about derivation path
This commit is contained in:
Olaoluwa Osuntokun 2019-07-22 15:58:23 -07:00 committed by GitHub
commit 4901df4573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,7 +45,7 @@ var (
// The key derivation in this file follows the following hierarchy based on
// BIP43:
//
// * m/1017'/coinType'/keyFamily/0/index
// * m/1017'/coinType'/keyFamily'/0/index
type KeyFamily uint32
const (
@ -110,9 +110,9 @@ const (
// Version 0 of our key derivation schema uses the following BIP43-like
// derivation:
//
// * m/201'/coinType'/keyFamily/0/index
// * m/1017'/coinType'/keyFamily'/0/index
//
// Our purpose is 201 (chosen arbitrary for now), and the coin type will vary
// Our purpose is 1017 (chosen arbitrary for now), and the coin type will vary
// based on which coin/chain the channels are being created on. The key family
// are actually just individual "accounts" in the nomenclature of BIP43. By
// default we assume a branch of 0 (external). Finally, the key index (which