Creates openpgp.Entity

This commit is contained in:
Stephen McQuay 2018-02-25 01:45:56 -08:00
parent d333acfdbd
commit 4d8f3f0e79
Signed by untrusted user: sm
GPG Key ID: 4E4B72F479BA3CE5
1 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,17 @@
package keyring
import "fmt"
import (
"log"
"github.com/pkg/errors"
"golang.org/x/crypto/openpgp"
)
func NewKeyPair(root, name, email string) error {
return fmt.Errorf("NYI: %v, %v, %v", root, name, email)
e, err := openpgp.NewEntity(name, "pm", email, nil)
if err != nil {
errors.Wrap(err, "new entity")
}
log.Printf("%+v", e)
return errors.New("NYI")
}