mix mob.plugin.keygen (mob_dev v0.7.6)

Copy Markdown View Source

Generates a per-plugin Ed25519 keypair and writes:

  • ~/.mob/keys/<plugin_name>.priv — base64-encoded raw 32-byte private key, mode 0600.
  • priv/mob_plugin.pub in the plugin directory — base64-encoded raw 32-byte public key.

The public key file ships with the plugin (committed to source control). The private key never goes into the repository: keep it on the author's machine and, for the release workflow mix mob.new_plugin generates, store its exact file contents as the MOB_PLUGIN_SIGN_KEY repository secret (gh secret set MOB_PLUGIN_SIGN_KEY < ~/.mob/keys/<name>.priv).

mix mob.plugin.keygen [--plugin <dir>] [--force]

Options

  • --plugin <dir> — plugin directory; defaults to the current working directory.
  • --force — overwrite an existing ~/.mob/keys/<name>.priv. Refused by default to prevent an accidental key rotation.