ShortString returns the Tailscale conventional debug representation of a public key: the first five base64 digits of the key, in square brackets.
()
| 238 | // of a public key: the first five base64 digits of the key, in square |
| 239 | // brackets. |
| 240 | func (k NodePublic) ShortString() string { |
| 241 | return debug32(k.k) |
| 242 | } |
| 243 | |
| 244 | // AppendTo appends k, serialized as a 32-byte binary value, to |
| 245 | // buf. Returns the new slice. |