Skip to content

Releases: Path-Check/shc-sdk.js

Release v0.0.11

18 Jan 20:58
Compare
Choose a tag to compare

Working with terminated & revoked issuers

Release v0.0.10

18 Jan 15:48
Compare
Choose a tag to compare

Bugfix for the RAW element on the VerificationResult

Release v0.0.9

18 Jan 15:09
Compare
Choose a tag to compare

New Error handling procedures on verification. The return of the verify and unpackAndVerify methods now return an object with:

{ 
  status: one of the error codes below. 
  contents: the body of the JWS, which is also the same object the user passed to the sign function. 
  issuer: issuer 
  raw: the JWS raw content (headerRaw, body, signature)
}

New ERROR codes for the status field

const NOT_SUPPORTED = "not_supported";                  // QR Standard not supported by this algorithm
const INVALID_ENCODING = "invalid_encoding";            // could not decode Base45 for DCC, Base10 for SHC
const INVALID_COMPRESSION = "invalid_compression";      // could not decompress the byte array
const INVALID_SIGNING_FORMAT = "invalid_signing_format";// invalid COSE, JOSE, W3C VC Payload
const KID_NOT_INCLUDED = "kid_not_included";            // unable to resolve the issuer ID
const ISSUER_NOT_TRUSTED = "issuer_not_trusted";        // issuer is not found in the registry
const TERMINATED_KEYS = "terminated_keys";              // issuer was terminated by the registry
const EXPIRED_KEYS = "expired_keys";                    // keys expired
const REVOKED_KEYS = "revoked_keys";                    // keys were revoked by the issuer
const INVALID_SIGNATURE = "invalid_signature";          // signature doesn't match
const VERIFIED = "verified";                            // Verified content.

Release v0.0.8

23 Dec 16:58
Compare
Choose a tag to compare

Removing expiration dates for the JWS (Smart Health cards do not support expiration dates)

Release v0.0.7

23 Dec 16:58
Compare
Choose a tag to compare

Change to make expiration dates optional on the makeJWT function.

Release v0.0.6

04 Nov 23:02
Compare
Choose a tag to compare

Distinct scripts to generate X509 certificate chains and/or private/public key pairs

Release v0.0.5

04 Nov 14:04
Compare
Choose a tag to compare

Release v0.0.4

27 Sep 15:23
Compare
Choose a tag to compare

Release v0.0.3

05 Jul 16:48
Compare
Choose a tag to compare