add more help text

This commit is contained in:
filifa
2025-09-17 21:02:05 -04:00
parent 4b4858c54f
commit 9e6f648f0b
14 changed files with 126 additions and 42 deletions

View File

@@ -119,10 +119,14 @@ func discreteLog(cmd *cobra.Command, args []string) {
// discreteLogCmd represents the discreteLog command
var discreteLogCmd = &cobra.Command{
Use: "discrete-log",
Use: "discrete-log -b N -m N -e N",
Short: "Compute the discrete logarithm",
Long: `Compute the discrete logarithm.`,
Run: discreteLog,
Long: `Compute the discrete logarithm.
Given a base b, modulus m, and element e, compute a value k such that b^k = e (mod m).
Note that no efficient method of finding the discrete logarithm is currently known. For slightly improved performance, the order of the group (i.e. the totient of m) can be provided.`,
Run: discreteLog,
}
func init() {