mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-10 09:38:31 +00:00
types/key: remove node key AsPublic/AsPrivate compat shims.
Updates #3206. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -138,15 +138,6 @@ func (k NodePrivate) UntypedHexString() string {
|
|||||||
return hex.EncodeToString(k.k[:])
|
return hex.EncodeToString(k.k[:])
|
||||||
}
|
}
|
||||||
|
|
||||||
// AsPrivate returns k converted to a Private.
|
|
||||||
//
|
|
||||||
// Deprecated: exists only as a compatibility bridge while Private
|
|
||||||
// gets removed from the codebase. Do not introduce new uses that
|
|
||||||
// aren't related to #3206.
|
|
||||||
func (k NodePrivate) AsPrivate() Private {
|
|
||||||
return k.k
|
|
||||||
}
|
|
||||||
|
|
||||||
// NodePublic is the public portion of a NodePrivate.
|
// NodePublic is the public portion of a NodePrivate.
|
||||||
type NodePublic struct {
|
type NodePublic struct {
|
||||||
k [32]byte
|
k [32]byte
|
||||||
@@ -316,12 +307,3 @@ func (k NodePublic) WireGuardGoString() string {
|
|||||||
b[second+3] = b64((k.k[31] << 2) & 63)
|
b[second+3] = b64((k.k[31] << 2) & 63)
|
||||||
return string(b)
|
return string(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AsPublic returns k converted to a Public.
|
|
||||||
//
|
|
||||||
// Deprecated: exists only as a compatibility bridge while Public
|
|
||||||
// gets removed from the codebase. Do not introduce new uses that
|
|
||||||
// aren't related to #3206.
|
|
||||||
func (k NodePublic) AsPublic() Public {
|
|
||||||
return k.k
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user