pm/keyring/keyring.go

18 lines
299 B
Go
Raw Normal View History

package keyring
2018-02-25 01:45:56 -08:00
import (
"log"
"github.com/pkg/errors"
"golang.org/x/crypto/openpgp"
)
func NewKeyPair(root, name, email string) error {
2018-02-25 01:45:56 -08:00
e, err := openpgp.NewEntity(name, "pm", email, nil)
if err != nil {
errors.Wrap(err, "new entity")
}
log.Printf("%+v", e)
return errors.New("NYI")
}