use public key instead of private key
This fixes a bug where the public key was not used to verify messages.
This commit is contained in:
parent
e337626eac
commit
1b8ac82754
2
flags.go
2
flags.go
|
@ -117,7 +117,7 @@ func InitFlags() {
|
|||
InitFlagOutput(CmdSignInput)
|
||||
// verify-input
|
||||
InitFlagInput(CmdVerifyInput)
|
||||
InitFlagPrivateKey(CmdVerifyInput)
|
||||
InitFlagPublicKey(CmdVerifyInput)
|
||||
InitFlagOutput(CmdVerifyInput)
|
||||
InitFlagSignature(CmdVerifyInput)
|
||||
// create-sign-request
|
||||
|
|
2
main.go
2
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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue