learner-credential-wallet

icon

Learner Credential Wallet

Learner Credential Wallet is a cross-platform iOS and Android mobile application for storing and sharing digital learner credentials.

Install Learner Credential Wallet for your mobile!

The wallet is based on the learner credential wallet specification developed by the Digital Credentials Consortium. The learner credential wallet specification is based on the draft W3C Universal Wallet interoperability specification and the draft W3C Verifiable Credentials data model.

The app has been compiled for iOS and Android and allows users to add and share credentials, as well as manage the wallet.

The Learner Credential Wallet startup screen, displaying the choice between quick and custom setup. The “credential preview” screen, displaying information about an issued credential, including credential name, issuer, issuer date, credential description, criteria, and verification status. The “share credential” screen, which allows the user to share their credentials with others through a public link or QR code, and includes the additional options to send the credential link or directly add it to LinkedIn through the app. The “verification status” screen, which shows whether the credential has been verified, and includes an additional breakdown of information including the last date verification status was checked, the validity of the credentials digital signature, expiration, and revocation status.

Goals

This learner credential wallet includes the features and technical requirements ultimately enabling individuals to curate and present their learning and employment records to others — for example, as applicants to educational programs or to apply for jobs with employers—in an interoperable manner.

Features

Contributing

Developers are welcome to open issues and PR’s on this repository. Please refer to CONTRIBUTING.md for information on how to contribute to this project.

Community

The Learner Credential Wallet is one project out of many at the Digital Credentials Consortium. The DCC sends out regular updates on all the software we produce. If you would like to sign up for our software-specific mailing list, you can do so by going here.

The archive of DCC software updates is hosted here.

Additionally, we hold a monthly Technical Office Hours meeting on the third Thursday of every month, from 9:30-10:30am EST. You can register for these office hours here.

Please note, being part of the OpenWallet Foundation, we expect all interactions to adhere to the Antitrust Policy and [Code of Conduct][code-of-conduct].

Pilot

The Digital Credentials Consortium is working with a number of colleges and universities to pilot test the wallet.

Development Setup

Installation

If you encounter any issues, visit the Troubleshooting Page

Dependencies

Prerequisites:

See Installing on Linux on setting up the project on Linux.

Setup of the LCW App

  1. Clone this repository or git pull
  2. In root of project, run npm install to install the React Native dependencies.
    • (Optionally, if you use the asdf version manager run asdf install to install - more info in asdf section below)
  3. Run npm run prebuild:ios and npm run prebuild:android to set up the ios and android folders. This step uses Expo prebuild.

If using asdf

Running the LCW App

  1. Run yarn start in one terminal
  2. In another terminal run yarn android
  1. In another terminal yarn yarn ios

Environment

This project uses TypeScript and React Native with Expo. It would be best to use an editor that can hook into the TypeScript language server (VSCode does this with Intellisense, Vim does it with CoC). We use Prettier for code formatting with the following configuration:

Most editors support Prettier integration for automatic formatting on save. You can manually format code by running npm run format or check formatting with npm run lint in the project root.

Code Formatting Setup

VS Code:

  1. Install the Prettier extension
  2. Enable “Format on Save” in settings
  3. Set Prettier as the default formatter

Other Editors: Refer to Prettier’s editor integration guide for setup instructions.

This project also uses environment variables, which are loaded and used in app.config.js. These values can be overridden, but development values should not be committed to the repository.

Project Structure

├── app
│   ├── assets ← Image assets
│   ├── components ← React components
│   ├── hooks ← This is where custom hooks are defined (usually wraps lib methods)
│   ├── init ← Logger and registry setup
│   ├── lib ← Location for utility methods
│   ├── mock ← Location for mock data, usually used for testing
│   ├── model ← Database access objects and connections
│   ├── navigation ← React Navigation structure
│   ├── screens ← Individual screen views
│   ├── store ← Redux and Redux Toolkit definitions
│   │   └── slices ← Redux Toolkit slices (add new Redux state here)
│   ├── styles ← All app style definitions
│   └── types ← General place for defining types (usually DCC types for Credential, Presentation, etc...)
├── android ← Auto-generated android build folder, can still be manually edited if needed
└── ios ← Same as android, except it also uses Cocoapods for dependency management
└── patches ← Patches created for software maintenance
└── test ← Where tests are kept, can run `npm run test` and `npm run coverage:open` for coverage stats

Configuration

Overridable configuration is in app.config.js

If forking this project to customize your own version of the LCW, please note the following:

Issuing new credential

Instructions for issuing a credential are here.

Adding new credential display

A custom display can be created for different credentials, to do so:

Accessibility

The Learner Credential Wallet is designed to be accessible to all users, including those with disabilities. We follow WCAG 2.1 AA guidelines and have conducted comprehensive accessibility testing.

Enabling Accessibility Features

iOS

  1. Open Settings > Accessibility
  2. Enable relevant features:
    • VoiceOver: Screen reader for blind and low-vision users
    • Voice Control: Navigate using voice commands
    • Switch Control: Use external switches for navigation
    • Zoom: Magnify screen content
    • Display & Text Size: Adjust text size, contrast, and reduce motion

Android

  1. Open Settings > Accessibility
  2. Enable relevant features:
    • TalkBack: Screen reader service
    • Voice Access: Voice control navigation
    • Switch Access: External switch navigation
    • Magnification: Screen magnification
    • High contrast text and Large text: Visual accessibility options

Accessibility Features in LCW

Testing Accessibility

For Developers

iOS Accessibility Testing:

  1. Run app on iOS simulator
  2. Open Xcode > Developer Tools > Accessibility Inspector
  3. Select your simulator from the target dropdown
  4. Use the inspection tool to verify accessibility labels and roles
  5. Run audit to identify accessibility issues

Android Accessibility Testing:

  1. Run app on Android emulator
  2. Open Android Studio > Tools > Layout Inspector
  3. Select your running app process
  4. Inspect accessibility properties in the Properties panel
  5. Enable TalkBack in emulator settings to test screen reader functionality

Manual Testing

  1. Screen Reader Testing:
    • iOS: Enable VoiceOver in Settings
    • Android: Enable TalkBack in Settings
    • Navigate through the app using swipe gestures
  2. Keyboard Navigation:
    • Connect external keyboard
    • Use Tab/Shift+Tab to navigate
    • Ensure all interactive elements are reachable
  3. Visual Testing:
    • Test with large text sizes (up to 200%)
    • Verify high contrast mode compatibility
    • Check color contrast ratios meet WCAG standards

Development Guidelines

When contributing to the project, ensure accessibility by:

Accessibility Conformance

We have conducted a Voluntary Product Accessibility Test, please review the Learner Credential Wallet Accessibility Conformance Report, December 2021

For more information on accessibility please visit the MIT Accessibilty page.

LCW App - general info

Privacy Policy

This Privacy Policy explains how Learner Credential Wallet collects, uses, and processes personal information about our learners.

What Personal Information We Collect

We do not collect any personal information.

Additional Information

We may change this Privacy Policy from time to time. If we make any significant changes in the way we treat your personal information we will make this clear on our website or by contacting you directly.

The controller for your personal information is the Learner Credential Wallet project at MIT. We can be contacted at lcw-support@mit.edu.

Terms and Conditions of Use

Learner Credential Wallet Terms and Conditions of Use

Acknowledgements

Initial development was supported by the U.S. Department of Education (Contract Number: 91990020C0105). The opinions expressed herein do not necessarily represent the positions or policies of the U.S. Department of Education, and no official endorsement by the U.S. Department of Education should be inferred.

Initial development was also supported by the Massachusetts Institute of Technology. Continued development is supported by members of the Digital Credentials Consortium.

License

MIT License Copyright (c) 2024 Massachusetts Institute of Technology

All files located in external directories are externally maintained libraries used by this software which have their own licenses; we recommend you read them, as their terms may differ from the terms above.