mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 08:07:42 +00:00
tailcfg: remove NodeKeyFromNodePublic.
Updates #3206 Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
c0ae1d2563
commit
0fcc88873b
@ -84,15 +84,6 @@ func (u StableNodeID) IsZero() bool {
|
|||||||
// a NodeKey, use NodePublic.AsNodeKey.
|
// a NodeKey, use NodePublic.AsNodeKey.
|
||||||
type NodeKey = key.NodeKey
|
type NodeKey = key.NodeKey
|
||||||
|
|
||||||
// NodeKeyFromNodePublic returns k converted to a NodeKey.
|
|
||||||
//
|
|
||||||
// Deprecated: exists only as a compatibility bridge while NodeKey
|
|
||||||
// gets removed from the codebase. Do not introduce new uses that
|
|
||||||
// aren't related to #3206.
|
|
||||||
func NodeKeyFromNodePublic(k key.NodePublic) NodeKey {
|
|
||||||
return k.AsNodeKey()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DiscoKey is the curve25519 public key for path discovery key.
|
// DiscoKey is the curve25519 public key for path discovery key.
|
||||||
// It's never written to disk or reused between network start-ups.
|
// It's never written to disk or reused between network start-ups.
|
||||||
type DiscoKey [32]byte
|
type DiscoKey [32]byte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user