keychain/derivation: add KeyFamilyTowerKey distinct from NodeID

This commit is contained in:
Conner Fromknecht 2019-06-20 16:55:32 -07:00
parent f7da87acc4
commit a7415336bc
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -96,6 +96,13 @@ const (
// session keys are limited to the lifetime of the session and are used // session keys are limited to the lifetime of the session and are used
// to increase privacy in the watchtower protocol. // to increase privacy in the watchtower protocol.
KeyFamilyTowerSession KeyFamily = 8 KeyFamilyTowerSession KeyFamily = 8
// KeyFamilyTowerID is the family of keys used to derive the public key
// of a watchtower. This made distinct from the node key to offer a form
// of rudimentary whitelisting, i.e. via knowledge of the pubkey,
// preventing others from having full access to the tower just as a
// result of knowing the node key.
KeyFamilyTowerID KeyFamily = 9
) )
// KeyLocator is a two-tuple that can be used to derive *any* key that has ever // KeyLocator is a two-tuple that can be used to derive *any* key that has ever