code: func (x *XC) CreatePrivateKeyBatch(ctx context.Context, name, email, passphrase string) error {
  	k, err := keyring.GenerateKeypair(passphrase)
  	if err != nil {
  		return errors.Wrapf(err, "failed to generate keypair: %s", err)
  	}
  	k.Identity.Name = name
  	k.Identity.Email = email
  	if err := x.secring.Set(k); err != nil {
  		return errors.Wrapf(err, "failed to set %v to secring: %s", k, err)
  	}
  	return x.secring.Save()
  }
docs: // CreatePrivateKeyBatch creates a new keypair