Revert "Revert "tailcfg: remove reference to types/key.Public.""

Updates #3206

This reverts commit ef14663934afdaeff1b6aaccc9590212a0fbcee5.
This commit is contained in:
David Anderson 2021-10-29 09:38:44 -07:00
parent ef14663934
commit ebae0d95d0

View File

@ -1148,7 +1148,7 @@ func keyUnmarshalText(dst []byte, prefix string, text []byte) error {
return nil
}
func (k NodeKey) ShortString() string { return (key.Public(k)).ShortString() }
func (k NodeKey) ShortString() string { return key.NodePublicFromRaw32(mem.B(k[:])).ShortString() }
func (k NodeKey) String() string { return fmt.Sprintf("nodekey:%x", k[:]) }
func (k NodeKey) MarshalText() ([]byte, error) { return keyMarshalText("nodekey:", k), nil }