// PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer.
type PrivateKey []byte
+func (pub PublicKey) String() string {
+ return hex.EncodeToString(pub)
+}
+
// Public returns the PublicKey corresponding to priv.
func (priv PrivateKey) Public() PublicKey {
publicKey := make([]byte, PublicKeySize)