{
  "id": "minisign",
  "name": "Minisign",
  "homepage": "https://jedisct1.github.io/minisign/",
  "description": "A dead simple tool to sign files and verify signatures.",
  "executables": [
    "minisign"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.minisign/minisign.key"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Sign or verify a file",
    "description": "Sign a file with a secret key or verify a signature against a public key. Key generation, recreating or re-encrypting keys and legacy-format signing are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/jedisct1/minisign/blob/master/src/minisign.c",
        "revision": "master 2026-10",
        "evidence": "minisign -S [-l] [-x sig_file] [-s seckey_file] [-c untrusted_comment]\n            [-t trusted_comment] -m file [file ...]\nminisign -V [-H] [-x sig_file] [-p pubkey_file | -P pubkey] [-o] [-q] -m file\n-S                sign files\n-V                verify that a signature is valid for a given file\n-m <file>         file to sign/verify\n-o                combined with -V, output the file content after verification\n-p <pubkey_file>  public key file (default: ./minisign.pub)\n-P <pubkey>       public key, as a base64 string\n-s <seckey_file>  secret key file (default: ~/.minisign/minisign.key)\n-W                do not encrypt/decrypt the secret key with a password\n-x <sigfile>      signature file (default: <file>.minisig)\n-c <comment>      add a one-line untrusted comment\n-t <comment>      add a one-line trusted comment\n-q                quiet mode, suppress output"
      }
    ],
    "field": [
      {
        "id": "sign",
        "label": "Sign",
        "type": "boolean",
        "option": [
          "-S"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "verify",
        "label": "Verify",
        "type": "boolean",
        "option": [
          "-V"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "file",
        "label": "File",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-m"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "seckey",
        "label": "Secret key file",
        "description": "Defaults to ~/.minisign/minisign.key.",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "pubkey_file",
        "label": "Public key file",
        "description": "Defaults to ./minisign.pub.",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-p"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "pubkey",
        "label": "Public key (base64)",
        "type": "string",
        "option": [
          "-P"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "sigfile",
        "label": "Signature file",
        "description": "Defaults to <file>.minisig.",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "-x"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "trusted_comment",
        "label": "Trusted comment",
        "type": "string",
        "option": [
          "-t"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "untrusted_comment",
        "label": "Untrusted comment",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_password",
        "label": "Unencrypted secret key",
        "description": "Do not encrypt/decrypt the secret key with a password.",
        "type": "boolean",
        "option": [
          "-W"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "sign",
        "label": "Sign a file",
        "fields": [
          "sign",
          "file",
          "seckey",
          "trusted_comment",
          "untrusted_comment",
          "sigfile",
          "no_password"
        ],
        "required": [
          "sign",
          "file"
        ],
        "set": {
          "sign": [
            true
          ]
        }
      },
      {
        "id": "verify",
        "label": "Verify a signature",
        "fields": [
          "verify",
          "file",
          "pubkey_file",
          "pubkey",
          "sigfile",
          "quiet"
        ],
        "required": [
          "verify",
          "file"
        ],
        "set": {
          "verify": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "sign",
          "verify",
          "file",
          "seckey",
          "pubkey_file",
          "pubkey"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "sigfile",
          "trusted_comment",
          "untrusted_comment",
          "no_password",
          "quiet"
        ]
      }
    ]
  }
}
