From f0d3d6f1c6b24ce34f2da49e94a5b92388fd134d Mon Sep 17 00:00:00 2001 From: Greg Guthe Date: Fri, 11 May 2018 23:13:04 -0400 Subject: [PATCH] rm extra alg param to Signer.Verifier in verify example --- example/verify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/verify.go b/example/verify.go index 7e77e0b..10ff3f3 100644 --- a/example/verify.go +++ b/example/verify.go @@ -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})