Skip to content

Commit a148086

Browse files
authored
Merge pull request #11 from joerg-wagner/patch-1
Update GreenCertificateDecoder.java
2 parents de8cd39 + 1c0772a commit a148086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ehn/techiop/hcert/GreenCertificateDecoder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public String decode(String base45String) throws CompressorException, IOExceptio
4646
if (!base45String.startsWith(prefix))
4747
throw new RuntimeException("Base45 string not valid according to specification");
4848

49-
base45String = base45String.substring(3);
49+
base45String = base45String.substring(4);
5050
byte[] decodedBytes = Base45.getDecoder().decode(base45String);
5151

5252
byte[] coseBytes = decompress(decodedBytes);

0 commit comments

Comments
 (0)