Skip to content

Commit

Permalink
rm extra alg param to Signer.Verifier in verify example
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Guthe committed May 12, 2018
1 parent bb59937 commit f0d3d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func main() {
panic(fmt.Sprintf("Error signing the message %+v", err))
}

// derive a verifier from out signer's public key
verifier := signer.Verifier(cose.ES256)
// derive a verifier using the signer's public key and COSE algorithm
verifier := signer.Verifier()

// Verify
err = msg.Verify(external, []cose.Verifier{*verifier})
Expand Down

0 comments on commit f0d3d6f

Please sign in to comment.