diff options
author | Gibheer <gibheer@gmail.com> | 2015-07-19 17:33:35 +0200 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-07-19 17:33:35 +0200 |
commit | 1b8ac827542f23e85a0eb399369a33fc206c72e7 (patch) | |
tree | 03d122087214bd9fba9e1090033d4dbbd22256dd | |
parent | e337626eac443b58521633e71351587a9da8165d (diff) |
use public key instead of private key
This fixes a bug where the public key was not used to verify messages.
-rw-r--r-- | flags.go | 2 | ||||
-rw-r--r-- | main.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -117,7 +117,7 @@ func InitFlags() { InitFlagOutput(CmdSignInput) // verify-input InitFlagInput(CmdVerifyInput) - InitFlagPrivateKey(CmdVerifyInput) + InitFlagPublicKey(CmdVerifyInput) InitFlagOutput(CmdVerifyInput) InitFlagSignature(CmdVerifyInput) // create-sign-request @@ -74,7 +74,7 @@ func sign_input(cmd *Command, args []string) { // verify a message using a signature and a public key func verify_input(cmd *Command, args []string) { - err := checkFlags(checkPrivateKey, checkInput, checkOutput, checkSignature) + err := checkFlags(checkPublicKey, checkInput, checkOutput, checkSignature) if err != nil { crash_with_help(cmd, ErrorFlagInput, "Flags invalid: %s", err) } |