func GenerateKey(rand io.Reader) (publicKey *[32]byte, privateKey *[64]byte, err error) {
	pub, priv, err := ed25519.GenerateKey(rand)
	if err != nil {
		return nil, nil, err
	}
	publicKey, privateKey = new([32]byte), new([64]byte)
	copy((*publicKey)[:], pub)
	copy((*privateKey)[:], priv)
	return publicKey, privateKey, nil
}
// GenerateKey generates a new public/private key pair suitable for use with
// Sign and Open.
GenerateKey generates a new public/private key pair suitable for use with
Sign and Open.
// GenerateKey generates a new public / private key pair suitable for use with // Sign and Open .
func GenerateKey(rand io.Reader) (publicKey *[32]byte, privateKey *[64]byte, err error) {
	pub, priv, err := ed25519.GenerateKey(rand)
	if err != nil {
		return nil, nil, err
	}
	publicKey, privateKey = new([32]byte), new([64]byte)
	copy((*publicKey)[:], pub)
	copy((*privateKey)[:], priv)
	return publicKey, privateKey, nil
}
func GenerateKey ( rand io . Reader ) ( publicKey * [ 32 ] byte , privateKey * [ 64 ] byte , err error ) { pub , priv , err := ed25519 . GenerateKey ( rand ) if err != nil { return nil , nil , err } publicKey , privateKey = new ( [ 32 ] byte ) , new ( [ 64 ] byte ) copy ( ( * publicKey ) [ : ] , pub ) copy ( ( * privateKey ) [ : ] , priv ) return publicKey , privateKey , nil }
GenerateKey generates a new public/private key pair suitable for use with
Sign and Open.
GenerateKey generates a new public / private key pair suitable for use with Sign and Open .