Skip to content

Commit

Permalink
keychain/derivation: add KeyFamilyTowerKey distinct from NodeID
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Jun 21, 2019
1 parent f7da87a commit a741533
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keychain/derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a741533

Please sign in to comment.