INNER CODE UNIT · Go
main
lightningnetwork/lightning-onion · cmd/main.go:24
func main() {
app := cli.NewApp()
app.Name = "sphinx-cli"
app.Commands = []cli.Command{
{
Name: "genkeys",
Usage: "A helper function to generate a random new " +
"private-public key pair.",
Action: genKeys,
Flags: []cli.Flag{
cli.StringFlag{
Name: "priv",
Usage: "An optional flag to provide " +
"a private key. In this " +
"case, this command just " +
"calculates and prints the " +
"associated public key",
},