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

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/2744/head
David Anderson 3 years ago committed by Dave Anderson
parent 065c4ffc2c
commit 923c98cd8f

@ -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 {

Loading…
Cancel
Save