func GenerateKeys(seed *string) (ed25519.PrivateKey, ed25519.PublicKey, error) {
	var privateKey ed25519.PrivateKey
	var publicKey ed25519.PublicKey
	var err error

	if seed == nil {
		publicKey, privateKey, err = ed25519.GenerateKey(nil)
	} else {
		publicKey, privateKey, err = ed25519.GenerateKey(bytes.NewReader(hashPassword(*seed)))
	}
	if err != nil {
		return nil, nil, err
	}

	return privateKey, publicKey, nil
}
// GenerateKeys generates an ed25519 keypair from
// an optional seed
GenerateKeys generates an ed25519 keypair from
an optional seed
// GenerateKeys generates an ed25519 keypair from // an optional seed
func GenerateKeys(seed *string) (ed25519.PrivateKey, ed25519.PublicKey, error) {
	var privateKey ed25519.PrivateKey
	var publicKey ed25519.PublicKey
	var err error
	if seed == nil {
		publicKey, privateKey, err = ed25519.GenerateKey(nil)
	} else {
		publicKey, privateKey, err = ed25519.GenerateKey(bytes.NewReader(hashPassword(*seed)))
	}
	if err != nil {
		return nil, nil, err
	}
	return privateKey, publicKey, nil
}
func GenerateKeys ( seed * string ) ( ed25519 . PrivateKey , ed25519 . PublicKey , error ) { var privateKey ed25519 . PrivateKey var publicKey ed25519 . PublicKey var err error if seed == nil { publicKey , privateKey , err = ed25519 . GenerateKey ( nil ) } else { publicKey , privateKey , err = ed25519 . GenerateKey ( bytes . NewReader ( hashPassword ( * seed ) ) ) } if err != nil { return nil , nil , err } return privateKey , publicKey , nil }
GenerateKeys generates an ed25519 keypair from
an optional seed
GenerateKeys generates an ed25519 keypair from an optional seed