types/wgkey: add TODO for a future API change.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/2744/head
David Anderson 2021-08-25 19:05:44 -07:00 committed by Dave Anderson
parent 065c4ffc2c
commit 923c98cd8f
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ type Private [Size]byte
// NewPrivate generates a new curve25519 secret key.
// It conforms to the format described on https://cr.yp.to/ecdh.html.
//
// TODO: make this look more like types/key, key generation should not
// return an error.
func NewPrivate() (Private, error) {
k, err := NewPreshared()
if err != nil {