From 1b8ac827542f23e85a0eb399369a33fc206c72e7 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Sun, 19 Jul 2015 17:33:35 +0200 Subject: use public key instead of private key This fixes a bug where the public key was not used to verify messages. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 9b9ab0a..3235d1e 100644 --- a/main.go +++ b/main.go @@ -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) } -- cgit v1.2.3-70-g09d2