diff options
Diffstat (limited to 'types/key/node.go')
| -rw-r--r-- | types/key/node.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/types/key/node.go b/types/key/node.go index c83aba15a..bf7088c3d 100644 --- a/types/key/node.go +++ b/types/key/node.go @@ -307,3 +307,10 @@ func (k NodePublic) WireGuardGoString() string { b[second+3] = b64((k.k[31] << 2) & 63) return string(b) } + +// AsNodeKey returns k converted to a NodeKey. +// +// Cross-compatibility shim as part of #3206. +func (k NodePublic) AsNodeKey() NodeKey { + return k.Raw32() +} |
