From a7415336bc901f1661730f4f5a896e7b504c6d57 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 20 Jun 2019 16:55:32 -0700 Subject: [PATCH] keychain/derivation: add KeyFamilyTowerKey distinct from NodeID --- keychain/derivation.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/keychain/derivation.go b/keychain/derivation.go index 54144efca..f3a2f3fb9 100644 --- a/keychain/derivation.go +++ b/keychain/derivation.go @@ -96,6 +96,13 @@ const ( // session keys are limited to the lifetime of the session and are used // to increase privacy in the watchtower protocol. 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