Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To support the backward compatibility for qr code generation.

Solution

To make the Sunbird RC QR codes compatible with the existing version of Sunbird consumption app, the QR code generated by Sunbird RC should also be a URL. The proposed solution is to enable a provision in Sunbird RC to generate the QR code in URL format along with the W3C-VC data.

Prerequisite

Add the below data in /sunbird-rc-core/services/certificate-api/configs/keys.js

...

Code Block
const signingKeyType = process.env.SIGNING_KEY_TYPE || KeyType.RSA;

Solution

To make the Sunbird RC QR codes compatible with the existing version of Sunbird consumption app, the QR code generated by Sunbird RC should also be a URL. The proposed solution is to enable a provision in Sunbird RC to generate the QR code in URL format along with the W3C-VC data.

...