Skip to content

Commit

Permalink
feat(core): reconstruct the Agent services (#397)
Browse files Browse the repository at this point in the history
* feat: add new interface for stored record

* feat: add full function for ionic

* feat: add sqlite basic storage

* fix: datetime parser with BasicRecord

* fix: add missing case when filter condition is empty object

* test: fix unit test signify notification

* feat: move signify api outside aries

* feat: remove aries in connection service

* feat: remove aries in agent.ts

* feat: remove Aries part 1

* test: fix unit test for connection service

* feat: remove Aries part 2

* feat: remove aries next step

* feat: remove all aries things and can start wallet

* fix: connection keri establish

* fix: credential acdc issuance

* refactor: structure folder and unit test

* feat: remove aries on creds server

* feat: remove service for aries in docker-compose

* fix: import failed for api

* test: fix unit test for aries remove

* test: fix signify test

* test: fix unit test for UI

* fix: remove temporarily UI for testing

* fix: try catch error when init basic storage

* test: comment some unit test to pass pipeline

* feat: add JSONObject interface to cast data

* test: open some test to pass cicd

* fix: remove strip back UI related to Aries

* fix: remove unused import and did image

* test: refactoring the UI test with removed type

* test: refactor bulk unit tests

* feat: restructure agent service temporarily

* feat: restructure agent service part 2 - no unit test

* test: fix bulk unit tests

* test: fix unit test and increase test coverage

* fix: remove stuffs

* refactor: rename singleSigService to identifierService

* test: refactor all multisig test

* fix: merge develop phase 1

* test: fix all unit test when merge develop

* test: add unit test for storage

* refactor: remove some stuff and add missing unittest

* fix: some stuffs and move the function

* refactor: move the function to sense file

* feat: make storage more generic

* refactor: re-review changes 1

* refactor: re-review changes 2 (storage rework)

* test(core): more ipex tests and refactoring

* refactor: post re-review fixes

* feat(core): only re-create bran if missing in the secure storage

* refactor(core): delegation service

* refactor: removing redundant keri in naming

* refactor: further removing of keri naming

* refactor: remove some unused things

* refactor: remove unused static vars in services

* refactor: more tidying up

* fix(core): correct IIW ACDC said

* fix: only retrieve non dismissed credential requests

* test(core): add missing tests for unhandled multisig dismissed msgs

* test(core): isDismissed tests for getUnreadIpexGrantNotifications

* fix: correct theme for multisig

* fix: receiving multisig incept correctly

* refactor: remove unnecessary cred metadata attributes

* build: remove unused deps post aries removal

* refactor: minor improvements before merging

---------

Co-authored-by: iFergal <fergaloconnor1998@gmail.com>
  • Loading branch information
bao-sotatek and iFergal committed Apr 30, 2024
1 parent 2d261bc commit 1463e66
Show file tree
Hide file tree
Showing 92 changed files with 4,549 additions and 4,856 deletions.
3 changes: 2 additions & 1 deletion android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ dependencies {
implementation project(':capacitor-community-barcode-scanner')
implementation project(':capacitor-community-sqlite')
implementation project(':capacitor-clipboard')
implementation project(':capacitor-filesystem')
implementation project(':capacitor-keyboard')
implementation project(':capacitor-preferences')
implementation project(':capacitor-screen-orientation')
implementation project(':capacitor-share')
implementation project(':capacitor-splash-screen')
implementation project(':capacitor-status-bar')

}

Expand Down
9 changes: 6 additions & 3 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ project(':capacitor-community-sqlite').projectDir = new File('../node_modules/@c
include ':capacitor-clipboard'
project(':capacitor-clipboard').projectDir = new File('../node_modules/@capacitor/clipboard/android')

include ':capacitor-filesystem'
project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android')

include ':capacitor-keyboard'
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')

include ':capacitor-preferences'
project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android')

include ':capacitor-screen-orientation'
project(':capacitor-screen-orientation').projectDir = new File('../node_modules/@capacitor/screen-orientation/android')

include ':capacitor-share'
project(':capacitor-share').projectDir = new File('../node_modules/@capacitor/share/android')

include ':capacitor-splash-screen'
project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android')

include ':capacitor-status-bar'
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
2 changes: 1 addition & 1 deletion docker-assets/mediator/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
# format single_field common_log
level DEBUG
}
}
}
3 changes: 2 additions & 1 deletion ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ def capacitor_pods
pod 'CapacitorCommunityBarcodeScanner', :path => '../../node_modules/@capacitor-community/barcode-scanner'
pod 'CapacitorCommunitySqlite', :path => '../../node_modules/@capacitor-community/sqlite'
pod 'CapacitorClipboard', :path => '../../node_modules/@capacitor/clipboard'
pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences'
pod 'CapacitorScreenOrientation', :path => '../../node_modules/@capacitor/screen-orientation'
pod 'CapacitorShare', :path => '../../node_modules/@capacitor/share'
pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
end

target 'App' do
Expand Down
60 changes: 35 additions & 25 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
PODS:
- AparajitaCapacitorSecureStorage (5.0.0):
- AparajitaCapacitorSecureStorage (5.2.0):
- Capacitor
- Capacitor (5.5.1):
- KeychainSwift (~> 21.0)
- Capacitor (5.7.4):
- CapacitorCordova
- CapacitorClipboard (5.0.6):
- CapacitorClipboard (5.0.7):
- Capacitor
- CapacitorCommunityBarcodeScanner (4.0.1):
- Capacitor
- CapacitorCommunitySqlite (5.5.0):
- CapacitorCommunitySqlite (5.7.1):
- Capacitor
- SQLCipher
- ZIPFoundation
- CapacitorCordova (5.5.1)
- CapacitorFilesystem (5.1.4):
- CapacitorCordova (5.7.4)
- CapacitorKeyboard (5.0.8):
- Capacitor
- CapacitorKeyboard (5.0.6):
- CapacitorPreferences (5.0.7):
- Capacitor
- CapacitorPreferences (5.0.6):
- CapacitorScreenOrientation (5.0.7):
- Capacitor
- CapacitorShare (5.0.6):
- CapacitorShare (5.0.7):
- Capacitor
- CapacitorSplashScreen (5.0.6):
- CapacitorSplashScreen (5.0.7):
- Capacitor
- CapacitorStatusBar (5.0.7):
- Capacitor
- KeychainSwift (21.0.0)
- SQLCipher (4.5.5):
- SQLCipher/standard (= 4.5.5)
- SQLCipher/common (4.5.5)
Expand All @@ -36,14 +40,16 @@ DEPENDENCIES:
- "CapacitorCommunityBarcodeScanner (from `../../node_modules/@capacitor-community/barcode-scanner`)"
- "CapacitorCommunitySqlite (from `../../node_modules/@capacitor-community/sqlite`)"
- "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
- "CapacitorFilesystem (from `../../node_modules/@capacitor/filesystem`)"
- "CapacitorKeyboard (from `../../node_modules/@capacitor/keyboard`)"
- "CapacitorPreferences (from `../../node_modules/@capacitor/preferences`)"
- "CapacitorScreenOrientation (from `../../node_modules/@capacitor/screen-orientation`)"
- "CapacitorShare (from `../../node_modules/@capacitor/share`)"
- "CapacitorSplashScreen (from `../../node_modules/@capacitor/splash-screen`)"
- "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"

SPEC REPOS:
trunk:
- KeychainSwift
- SQLCipher
- ZIPFoundation

Expand All @@ -60,32 +66,36 @@ EXTERNAL SOURCES:
:path: "../../node_modules/@capacitor-community/sqlite"
CapacitorCordova:
:path: "../../node_modules/@capacitor/ios"
CapacitorFilesystem:
:path: "../../node_modules/@capacitor/filesystem"
CapacitorKeyboard:
:path: "../../node_modules/@capacitor/keyboard"
CapacitorPreferences:
:path: "../../node_modules/@capacitor/preferences"
CapacitorScreenOrientation:
:path: "../../node_modules/@capacitor/screen-orientation"
CapacitorShare:
:path: "../../node_modules/@capacitor/share"
CapacitorSplashScreen:
:path: "../../node_modules/@capacitor/splash-screen"
CapacitorStatusBar:
:path: "../../node_modules/@capacitor/status-bar"

SPEC CHECKSUMS:
AparajitaCapacitorSecureStorage: 4e40b517555ee2a0e6e034d4bd744b413b98483c
Capacitor: 9da0a2415e3b6098511f8b5ffdb578d91ee79f8f
CapacitorClipboard: 77edf49827ea21da2a9c05c690a4a6a4d07199c4
AparajitaCapacitorSecureStorage: 2f3a28fa7cf90053bf5b56834607349cbf9f24ca
Capacitor: 4fe9adf012caceb4c71ffea2f1f4d005cdcbeea7
CapacitorClipboard: 45e5e25f2271f98712985d422776cdc5a779cca1
CapacitorCommunityBarcodeScanner: 7feb206489c8555a8ca0c74c57ddf49ead774eb8
CapacitorCommunitySqlite: f2dd4fa2f41f48ee509b506dc1930347cd32ba31
CapacitorCordova: e128cc7688c070ca0bfa439898a5f609da8dbcfe
CapacitorFilesystem: af704badfbc69f6f8623d9ed313e5490e3723dcb
CapacitorKeyboard: b978154b024a5f65e044908e37d15b7de58b9d12
CapacitorPreferences: f03954bcb0ff09c792909e46bff88e3183c16b10
CapacitorShare: cd41743331cb71d217c029de54b681cbd91e0fcc
CapacitorSplashScreen: 5fa2ab5e46cf5cc530cf16a51c80c7a986579ccd
CapacitorCommunitySqlite: 6e2754dde799d618a8e75e409ccc67ec9c189460
CapacitorCordova: a6e87fccc0307dee7aec1560ec9398485f2b0ce7
CapacitorKeyboard: aec619a578235c6ce279075009a2689c2cf5c42c
CapacitorPreferences: 77ac427e98db83bace772455f8ba447430382c4c
CapacitorScreenOrientation: cc638c369cb2b1dfc55f8265485a8b4e0b3cafd9
CapacitorShare: c6a1ebbf0114ff9e863b966cd6052678fa25d480
CapacitorSplashScreen: dd3de3f3644710fa2a697cfb91ec262eece4d242
CapacitorStatusBar: f390fbb49b82ffb754ea4b3cf71dc8b048baf3e7
KeychainSwift: 4a71a45c802fd9e73906457c2dcbdbdc06c9419d
SQLCipher: f2e96b3822e3006b379181a0e4fd145f6de29b56
ZIPFoundation: d170fa8e270b2a32bef9dcdcabff5b8f1a5deced

PODFILE CHECKSUM: 12c7c6ec093cad0df115dcc9a34d57cc41e85bfb
PODFILE CHECKSUM: 90423924fbe85f2efaaf46e65be5f444629b2f3a

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
76 changes: 0 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@capacitor/android": "^5.0.0",
"@capacitor/clipboard": "^5.0.0",
"@capacitor/core": "^5.0.0",
"@capacitor/filesystem": "^5.0.0",
"@capacitor/ios": "^5.0.0",
"@capacitor/keyboard": "^5.0.0",
"@capacitor/preferences": "^5.0.0",
Expand All @@ -34,12 +33,10 @@
"@ionic/react-router": "^7.5.4",
"@ionic/storage": "^3.0.6",
"@reduxjs/toolkit": "^1.9.5",
"@stablelib/ed25519": "^1.0.3",
"bip39": "^3.0.4",
"dotenv": "^16.4.5",
"i18next": "^22.4.14",
"i18next-browser-languagedetector": "^7.0.1",
"libsodium-wrappers": "^0.7.11",
"log4js": "^6.9.1",
"lottie-react": "^2.4.0",
"react": "^18.2.0",
Expand Down
12 changes: 1 addition & 11 deletions services/credential-issuance-server/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ID Wallet Issuer Server
This server runs an Aries and Signify agent to act as an issuance server for both W3C credentials and ACDCs (KERI eco-system).
Right now, this is only used for testing purposes for the wallet - it is not meant as a full blown issuance server - hence there are no tests in this module.

### How to run (development)
Expand All @@ -10,15 +9,6 @@ Right now, this is only used for testing purposes for the wallet - it is not mea
3. Build code and run the built server:
`npm build`&& `npm start`
4. CLI
- `npm run cli:invitation` - get OOB invitation
- `npm run cli:offer-credential` - issue credential with connection
- `npm run cli:offer-credential-connection-less` - issue credential without connection
5. CLI with another credential
- `npm run cli:offer-credential degree-credential.json`
- `npm run cli:offer-credential-connection-less degree-credential.json`
- `npm run cli:offer-credential degree-credential-with-expiration.json`
- `npm run cli:offer-credential-connection-less degree-credential-with-expiration.json`
- `npm run cli:offer-credential resident-card-with-expiration.json`
- `npm run cli:offer-credential summit-access-pass.json`
- `npm run cli:keri-oobi` - get OOBI invitation

The CLI may also be used locally to point at a remotely deployed server by setting the `ENDPOINT` environment variable. (default is `http://1237.0.0.1:3001`)
5 changes: 0 additions & 5 deletions services/credential-issuance-server/src/errors.ts

This file was deleted.

0 comments on commit 1463e66

Please sign in to comment.