Files
inji-wallet/package.json
KiruthikaJeyashankar 82740bcc36 [INJIMOB-2471] set UUID as vc identifier (#1745)
* [INJIMOB-2471] make identifier of Vc as random UUID

Previously, we were relying on the id feild of the Vc to construct the unique identifier for VC component and file name for storing VC, this identifier in now replaced with random generated UUID. This was made since id property of VC is optional field as per w3c data-model 1.1.

We are using UUID version 4 to ensure randomness and collision-resistance.

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2471] maintain consistency in setting VCMetadata ID

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJICERT-2471] use VC metadata id as VC key

This VC key will be used for storing file name, component key & other identifier for VCs

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2471] remove setting identifier field in credential wrapper

The identitifier in credentialWrapper having the value "$issuer:$protocol:$UUID" was used to construct VC metadata id, issuer and protocol field which is already available in context param. This is now replaced with constructing VC metadata with the required fields available in machine context.

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2471] use context VCMetadata instead of calling function for accessing in issuersMachine

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-2471] optimize import

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

---------

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
2024-12-24 10:00:27 +05:30

165 lines
6.0 KiB
JSON

{
"scripts": {
"prepare": "husky install",
"jetify": "jetify",
"start": "react-native start",
"android:mosip": "react-native run-android --variant=residentappDebug",
"ios": "react-native run-ios",
"build:android:mosip": "cd android && ./gradlew :app:assembleResidentappRelease && cd ..",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest",
"test-coverage": "jest --coverage",
"postinstall": "patch-package && npm run jetify && sh tools/talisman/talisman-precommit.sh"
},
"dependencies": {
"@digitalbazaar/ed25519-signature-2018": "digitalbazaar/ed25519-signature-2018",
"@digitalbazaar/ed25519-verification-key-2018": "digitalbazaar/ed25519-verification-key-2018",
"@digitalbazaar/rsa-signature-2018": "digitalbazaar/rsa-signature-2018#initial",
"@digitalbazaar/rsa-verification-key-2018": "digitalbazaar/rsa-verification-key-2018#initial",
"@digitalcredentials/vc": "^1.1.2",
"@expo-google-fonts/inter": "^0.2.3",
"@expo/metro-config": "~0.10.0",
"@invertase/react-native-apple-authentication": "^2.3.0",
"@iriscan/biometric-sdk-react-native": "0.2.6",
"@noble/ed25519": "^2.1.0",
"@noble/hashes": "^1.5.0",
"@noble/secp256k1": "2.0.0",
"@react-native-clipboard/clipboard": "^1.10.0",
"@react-native-community/image-editor": "^4.2.0",
"@react-native-community/netinfo": "9.3.7",
"@react-native-google-signin/google-signin": "^10.1.1",
"@react-native-picker/picker": "2.4.8",
"@react-navigation/bottom-tabs": "^6.0.7",
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.1.0",
"@robinbobin/react-native-google-drive-api-wrapper": "^1.2.4",
"@xstate/react": "^3.0.1",
"asn1.js": "^5.4.1",
"base45-web": "^1.0.2",
"base64url-universal": "^1.1.0",
"buffer": "^6.0.3",
"color-diff": "^1.4.0",
"date-fns": "^2.26.0",
"expo": "~49.0.23",
"expo-auth-session": "^5.2.0",
"expo-barcode-scanner": "~12.3.2",
"expo-camera": "^13.9.0",
"expo-constants": "^14.4.2",
"expo-face-detector": "12.4.0",
"expo-font": "~11.1.1",
"expo-local-authentication": "~13.3.0",
"expo-localization": "~14.1.1",
"expo-modules-autolinking": "~1.5.0",
"expo-updates": "^0.18.17",
"expo-web-browser": "^12.5.0",
"hex-rgb": "^5.0.0",
"i18next": "^21.6.16",
"iso-639-3": "^3.0.1",
"jsonpath-plus": "^10.0.0",
"jwt-decode": "^3.1.2",
"node-forge": "^1.3.1",
"node-jose": "^2.2.0",
"patch-package": "^6.5.1",
"postinstall-postinstall": "^2.1.0",
"react": "18.2.0",
"react-i18next": "^11.16.6",
"react-native": "0.71.8",
"react-native-android-location-services-dialog-box": "^2.8.2",
"react-native-app-auth": "^7.0.0",
"react-native-app-intro-slider": "^4.0.4",
"react-native-argon2": "^2.0.1",
"react-native-biometrics-changed": "^1.1.8",
"react-native-bluetooth-state-manager": "^1.3.2",
"react-native-cli": "^2.0.1",
"react-native-cloud-storage": "^1.4.0",
"react-native-copilot": "^3.3.2",
"react-native-device-info": "^8.4.8",
"react-native-dotenv": "^3.3.1",
"react-native-draglist": "^3.6.2",
"react-native-elements": "3.4.3",
"react-native-fs": "^2.18.0",
"react-native-gesture-handler": "~2.9.0",
"react-native-get-random-values": "^1.11.0",
"react-native-image-colors": "^2.4.0",
"react-native-linear-gradient": "^2.8.0",
"react-native-localize": "^3.0.2",
"react-native-location": "^2.5.0",
"react-native-mmkv-storage": "^0.9.1",
"react-native-permissions": "^3.8.0",
"react-native-popable": "^0.4.3",
"react-native-qrcode-svg": "^6.2.0",
"react-native-restart": "^0.0.24",
"react-native-rsa-native": "^2.0.5",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.32.0",
"react-native-securerandom": "^1.0.1",
"react-native-shimmer-placeholder": "^2.0.9",
"react-native-spinkit": "^1.5.1",
"react-native-svg": "13.4.0",
"react-native-vector-icons": "^10.0.0",
"react-native-zip-archive": "^6.1.0",
"react-test-renderer": "^18.2.0",
"short-unique-id": "^4.4.4",
"simple-pem2jwk": "^0.2.4",
"telemetry-sdk": "git://github.com/mosip/sunbird-telemetry-sdk.git#f762be5732ee552c0c70bdd540aa4e2701554c71",
"text-encoding": "^0.7.0",
"uuid": "^11.0.3",
"xstate": "^4.35.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.20.0",
"@jest/globals": "^29.7.0",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/assets-registry": "^0.72.0",
"@react-navigation/devtools": "^6.0.19",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.4.3",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.5.11",
"@types/node-forge": "^1.3.9",
"@types/react": "^18.0.24",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"babel-jest": "^29.2.1",
"babel-plugin-inline-import": "^3.0.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^8.19.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-sonarjs": "^0.13.0",
"glob": "^8.0.1",
"husky": "^7.0.4",
"jest": "^29.2.1",
"jest-environment-jsdom": "^29.7.0",
"jetifier": "^2.0.0",
"lint-staged": "^12.3.7",
"prettier": "^2.6.1",
"react-native-flipper": "^0.212.0",
"react-native-flipper-xstate": "^1.0.5",
"react-native-share": "^10.2.1",
"react-native-svg-transformer": "^1.1.0",
"react-native-url-polyfill": "^2.0.0",
"rn-mmkv-storage-flipper": "^1.1.1",
"ts-jest": "^29.1.1",
"typescript": "^4.9.5"
},
"private": true,
"name": "mosip-resident-app",
"version": "1.0.0",
"lint-staged": {
"*.{ts,tsx,js,css,md}": "prettier --write"
},
"overrides": {
"react": "18.2.0",
"react-native": "0.71.8",
"node-forge": "^1.3.1"
},
"engines": {
"node": ">=16"
}
}