Skip to content

Commit

Permalink
change encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Jan 10, 2025
1 parent b30b01f commit 9ade7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifier/elsi_proof_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (epc ElsiProofChecker) checkElsiProof(headers jose.Headers, expectedProofIs
encodedMessage, _ := decodeBase64BytesToString(msg)
encodedSignature := base64.RawURLEncoding.EncodeToString(signature)
originalJwt := encodedMessage + "." + encodedSignature
base64Jwt := base64.RawURLEncoding.EncodeToString([]byte(originalJwt))
base64Jwt := base64.RawStdEncoding.EncodeToString([]byte(originalJwt))
isValid, err := epc.jAdESValidator.ValidateSignature(base64Jwt)
if err != nil {
logging.Log().Warnf("Was not able to validate JAdES signature. Err: %v", err)
Expand Down

0 comments on commit 9ade7a0

Please sign in to comment.