Components

Inji Wallet utilizes multiple libraries to provide a seamless experience.

These library are accessible as AAR for Android app and SPM(Swift Package Manager) for iOS App. Android libraries are written in Kotlin and can be easily integrated with cross platform applications like React Native or Flutter. This helps with seamless integration with other mobile wallets.

The libraries are as follows:

  1. Secure Keystore SDK

  2. VCI Client SDK

  3. PixelPass SDK

  4. Tuvali - Sharing via BLE SDK

  5. OpenID4VP - Online Sharing SDK

  6. Face Match SDK

  7. Telemetry SDK(coming soon)

1. Tuvali - Sharing via BLE SDK

  • This library facilitates the transfer of downloaded Verifiable Credential from the Wallet to Verifier.

  • Tuvali enables offline VC transfer between mobile devices via Bluetooth Low Energy (BLE). The below table represents the supported roles for Android and iOS devices.

Wallet
Verifier
VC transfer support

Android

Android

Yes

iOS

Android

Yes

Android

iOS

No

iOS

iOS

No

circle-info

Note:

2. Face Match SDK

The face matcher SDK internally implements native functionalities for Android and iOS, utilizing Tensorflowarrow-up-right and Google ML Kitarrow-up-right to identify faces.

This SDK internally employs a tflite model, which is now bundled within the app. The face matcher functionality is also available via the iriscan/biometric-sdk-react-nativearrow-up-right NPM module, which is already integrated for offline face authentication in Inji Wallet.

The SDK is employed in two scenarios: During Both Offline and Online VC Sharing: Residents can perform selfie authentication before sharing the VC with the relying party. The app opens the camera, allowing residents to take a selfie, which is then validated against the VC image to verify the resident's presence. This process is supported for both offline VC sharing (e.g., via BLE) and online login (e.g., scanning a QR code from the relying party portal and logging in using Inji Wallet). Refer here to check the API specifications for the face matcher model.

3. Secure Keystore SDK

The secure-keystore library is designed for creating and storing key pairs in the hardware keystore of devices. The library supports encryption, decryption, HMAC calculation, and signing with aliases created during key pair generation.

This library is available for both Android and iOS platforms:

Inji Wallet integrates with the secure-keystore library to ensure secure key management. To optimize the key size during credential download requests, Inji Wallet uses RSA-2048, ECR1, ECK1, ED25519 keys.

To check all the APIs supported by this module, refer herearrow-up-right.

circle-info

Note:

  • Compatible with devices that support a hardware keystore.

  • To understand the library and access API documentation, refer here.

  • Maven snapshots are available herearrow-up-right.

4. PixelPass SDK

The PixelPass library offers a powerful solution for creating and decoding QR codes for Verifiable Credentials (VCs). It is designed to optimize the size of the data encoded within a QR code, making it easier to store and share credential information. The library achieves this by utilizing advanced compression and encoding techniques, ensuring smaller QR codes that maintain the integrity and security of the data.

PixelPass uses zlib compression with a level 9 setting, which significantly reduces the data size before encoding. It then applies base45 encoding to further compress the data into a QR code-friendly format. Additionally, the library can decode any QR code data previously encoded using its own compression and encoding algorithms, ensuring seamless interoperability.

Additionally, for a JSON data, the library employs CBOR encoding and decoding to minimize the size even further. When a JSON Mapper similar to Claim 169arrow-up-right is provided, PixelPass maps the data, applies CBOR encoding/decoding, and compresses the data, achieving maximum size reduction. Developed and maintained by MOSIP, PixelPass is continually updated to provide reliable and efficient QR code generation and decoding capabilities.

circle-info

Note:

5. VCI-client SDK

VCI-Client library carries out the credential request from the consumer application (mobile wallet or web) and redirects the issuance/issuer. The library creates a request with the credential format, jwtproof of the wallet, issuer metadata and the access token received for authorization and provides VC as the response back to the consumer application for storage.

circle-info

Note:

6. OpenID4VP - Online Sharing SDK

This OpenID4VP library enables consumer applications (mobile wallet) to share users Verifiable Credentials with Verifiers who request them online. It adheres to the OpenID4VP specification which outlines the standards for requesting and presenting Verifiable Credentials.

This library follows the below steps to share the Verifiable Presentation with the Requested Verifier:

  1. Receives the Verifier's Authorization Request sent by the consumer application (mobile wallet).

  2. Validates the received Authorization Request to check if the required details are present or not and then returns the Authorization Request to the consumer application once all the validations are successful.

  3. Receives the list of Verifiable Credentials from the consumer application which are selected by the consumer application end-user based on the credentials requested as part of Verifier Authorization request.

  4. Constructs the vp_token without proof section and sends it back to the consumer application for generating Json Web Signature (JWS).

  5. Receives the generated signature along with the other details and generates vp_token with proof section & presentation_submission.

  6. Sends a POST request with generated vp_token and presentation_submission to the received Verifier's response_uri endpoint.

circle-info

Note:

7. Telemetry SDK

The telemetryarrow-up-right module is derived from the sunbird telemetryarrow-up-right module. It is responsible for generating events that can provide valuable analytics.

Note: The publication of this project is currently a work in progress and has not been released yet. Stay tuned for further announcements!

To know more about each of these, refer Integration Guides.

Last updated

Was this helpful?