Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tore Kasper Frederiksen committed Mar 29, 2022
1 parent afa6a7e commit a51da6c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You can always use this project in your own code through Maven central, by addin
<dependency>
<groupId>org.tokenscript</groupId>
<artifactId>attestation</artifactId>
<version>0.3.14</version>
<version>0.3.15</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dependencies {
implementation group: 'commons-cli', name: 'commons-cli', version: '[1.5.0, 2)'
implementation group: 'com.google.code.gson', name: 'gson', version: '[2.9.0, 3)'
testImplementation 'org.mockito:mockito-core:[4.4.0, 5)'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.core:jackson-databind:[2.13.2.1,)'
implementation group: 'org.java-websocket', name: 'Java-WebSocket'
}

Expand Down Expand Up @@ -163,7 +163,7 @@ task testJavaScript(type: NodeTask) {

group = "org.tokenscript"
archivesBaseName = "attestation"
version = "0.3.14"
version = "0.3.15"

/** See https://docs.gradle.org/current/userguide/publishing_maven.html for details
* For actually updating the Maven repo update the version reference in README.md,
Expand Down
2 changes: 1 addition & 1 deletion devcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ The command will print `Ticket is VALID and was issued to email [email protected]` if

For example:

java -cp attestation-0.3.14-all.jar org.devcon.ticket.Validator pub.pem MIGYMA8MATYCBwCMryzpzeQCAQAEQQQtqLOcLgwsajj19K141ER4A4fblUH-cH0ZM_HZQmylYiSxsPljEL--ldyfbPIslT7djTuYJakQdyapeuPpnEDjA0IA1LMfG8yWPpa2Yuyssn5fBB4MsNY3PpF0hwELzugBxw96zU4Q2k9jz5_L3Y3qIyshm8AH5EiIwm5k5LIZs3idghw= MIGqBEEECwGwPNcyCsaGTbr5_BVaThbVuQr7kUWGFI3XgT68kpMi3JGIuO5SCAX4C-ySQxSnQO-9qAZeUjYo7dfnyJiAuwQgLY3YogvmiVW8frt3wxbX9qIBqkgMTcoCdN8af7_QXCEEQQQWPq3mXaFk68AgZgOXq0ORy1XPeTicyazBHv7WGDa_3x-swwhLDW1q8JvvRfbi2t0juMdiEhiG4NgRF-4oOiIOBAA= [email protected]
java -cp attestation-0.3.15-all.jar org.devcon.ticket.Validator pub.pem MIGYMA8MATYCBwCMryzpzeQCAQAEQQQtqLOcLgwsajj19K141ER4A4fblUH-cH0ZM_HZQmylYiSxsPljEL--ldyfbPIslT7djTuYJakQdyapeuPpnEDjA0IA1LMfG8yWPpa2Yuyssn5fBB4MsNY3PpF0hwELzugBxw96zU4Q2k9jz5_L3Y3qIyshm8AH5EiIwm5k5LIZs3idghw= MIGqBEEECwGwPNcyCsaGTbr5_BVaThbVuQr7kUWGFI3XgT68kpMi3JGIuO5SCAX4C-ySQxSnQO-9qAZeUjYo7dfnyJiAuwQgLY3YogvmiVW8frt3wxbX9qIBqkgMTcoCdN8af7_QXCEEQQQWPq3mXaFk68AgZgOXq0ORy1XPeTicyazBHv7WGDa_3x-swwhLDW1q8JvvRfbi2t0juMdiEhiG4NgRF-4oOiIOBAA= [email protected]
12 changes: 6 additions & 6 deletions src/main/javascript/crypto/src/libs/Attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ export class Attestation {

if (this.notValidAfter != null && this.notValidBefore != null) {
let date = Asn1Der.encode('GENERALIZED_TIME', this.notValidBefore);
// if (this.blockchainFriendly) {
// date += Asn1Der.encode('INTEGER', this.notValidBefore);
// }
if (this.blockchainFriendly) {
date += Asn1Der.encode('INTEGER', this.notValidBefore);
}
date += Asn1Der.encode('GENERALIZED_TIME', this.notValidAfter);
// if (this.blockchainFriendly) {
// date += Asn1Der.encode('INTEGER', this.notValidAfter);
// }
if (this.blockchainFriendly) {
date += Asn1Der.encode('INTEGER', this.notValidAfter);
}
res += Asn1Der.encode('SEQUENCE_30', date);
} else {
res += Asn1Der.encode('NULL_VALUE','');
Expand Down

0 comments on commit a51da6c

Please sign in to comment.