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

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-08-25 19:05:44 -07:00 committed by Dave Anderson
parent 065c4ffc2c
commit 923c98cd8f

View File

@ -138,6 +138,9 @@ func (a *Key) LessThan(b *Key) bool {
// 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 {