Skip to content

Commit 5ba1bd1

Browse files
milosbackonjashotexaEzequielPostanmineme0110
authored
refactor!: Open source node (#850)
* refactor: clean up migrations (#830) * Add everything Signed-off-by: Shota Jolbordi <[email protected]> * Remove migration tests Signed-off-by: Shota Jolbordi <[email protected]> * add ingnore invalid create option for postres mega linter Signed-off-by: Shota Jolbordi <[email protected]> * Try mega linter 7 Signed-off-by: Shota Jolbordi <[email protected]> * edit megalinter.yaml Signed-off-by: Shota Jolbordi <[email protected]> * Disable some linters Signed-off-by: Shota Jolbordi <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]> * refactor(node): remove legacy BE files (#832) * Start cleaning up docs Signed-off-by: Shota Jolbordi <[email protected]> * Remove more files Signed-off-by: Shota Jolbordi <[email protected]> * Fix compilation issue Signed-off-by: Shota Jolbordi <[email protected]> * Trim docs Signed-off-by: Shota Jolbordi <[email protected]> * Fix compilation errors Signed-off-by: Shota Jolbordi <[email protected]> * Remove some bitcoin test resources and old docs Signed-off-by: Shota Jolbordi <[email protected]> * Lint Signed-off-by: Shota Jolbordi <[email protected]> * Fix tests Signed-off-by: Shota Jolbordi <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]> * refactor: Delete legacy operation related to credentials (#831) * ATL-6668: Delete legacy operation related to credentials This commit deletes the IssueCredentialBatchOperation and RevokeCredentialsOperation. It does not delete node API, daos nor repositories related to credentials * ATL-6668: Delete more files related to VCs This commit deletes even more files related to VC operations. It also removes some dependencies on the old SDK * ATL-6668: Delete unused tables This commit deletes tables and indexes from VC legacy operations * ATL-6668: Fix formatting * ATL-6668: Address review comments This commit deletes references to legacy VC code in protobuf and sql definitions * refactor(ATL-6924): add support for other keys (#834) * ATL-6924: Replace users of ECPublicKey This commit replaces the used of ECPublicKey * ATL-6924: Simplify models This commit simplifies models by deleting classes not needed at parsing time * ATL-6924: Simplify types This commit replaces some uses of Array and uses Vector instead to allow more transparent equality checks * ATL-6924: Add support for encoding functions This commit adds support to decode hex strings into Sha256Hash bytes * ATL-6924: Refactor CryptoUtils and remove SHA256Digest This commit improves the organization of CryptoUtils methods It also delete the used of SDK methods related to Sha256 hashing * refactor(ATL-6926): remove crypto sdk (#838) * ATL-6926: Remove uses of EC classes This commit removes most uses of the legacy crypto SDK * ATL-6926: Fix missing implementations This commit adds missing implementations for key encoding algorithms * ATL-6926: Fix tests * ATL-6926: Clean up code and tests * ATL-6926: Correct typo and add tests This commit adds the final tests to validate the cryptography implementation that replaces the SDK * refactor(node): Remove prism identity (#840) * clean up source files, replace DID usages Signed-off-by: Shota Jolbordi <[email protected]> * Fix some tests Signed-off-by: Shota Jolbordi <[email protected]> * Linting Signed-off-by: Shota Jolbordi <[email protected]> * Fix test Signed-off-by: Shota Jolbordi <[email protected]> * Fix fromString on DID Signed-off-by: Shota Jolbordi <[email protected]> * formatting Signed-off-by: Shota Jolbordi <[email protected]> * Address some PR comments Signed-off-by: Shota Jolbordi <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]> * refactor: crypto utils and tests (#841) * Remove uses of the old SDK This commit removes the uses of the old SDK and update tests * Refactor CryptoUtils class This commit re-organizes and renames methods for better use * Remove last dependency on old SDK This commit removes the last dependencies on the old SDK * docs(ATL-6669): update readme (#833) * ATL-6669: Update README This commits updates the README to focus oly on the PRISM node. * ATL-6669: Add IDE notes in README This commit adds instructions to load the project in different IDEs. The commit also removes incorrect sentences * ATL-6669: Delete old README and complete new one * ATL-6669: Add pre-commit configuration This commit adds a pre-commit hook that runs scalafmt and instructions to configure it * ATL-6669: Refer to identus configuration This commit updates the README and refers users to read identus documentation in order to configure the node. * ATL-7040: Delete DID based authentication (#843) This commit deletes the legacy DID based authentication * refactor(node): build files and add default port for gRPC server (#844) * Change some build files Signed-off-by: Shota Jolbordi <[email protected]> * Rmove unused files Signed-off-by: Shota Jolbordi <[email protected]> * Remove unused files Signed-off-by: Shota Jolbordi <[email protected]> * Remove outer node folder Signed-off-by: Shota Jolbordi <[email protected]> * Revert version name Signed-off-by: Shota Jolbordi <[email protected]> * Remove unneeded resolver from the build Signed-off-by: Shota Jolbordi <[email protected]> * Update fs2 Signed-off-by: Shota Jolbordi <[email protected]> * Start adding tests Signed-off-by: Shota Jolbordi <[email protected]> * Add more tests Signed-off-by: Shota Jolbordi <[email protected]> * Fix 1 failing test Signed-off-by: Shota Jolbordi <[email protected]> * Minor adjustment in docs Signed-off-by: Shota Jolbordi <[email protected]> * Remove test report aggregation step Signed-off-by: Shota Jolbordi <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]> * fix: Add http scheme support and removed the constraint from public keys table (#848) * Add http scheme support and removed the contraint from publickeys table Signed-off-by: mineme0110 <[email protected]> * ran scalafmt Signed-off-by: mineme0110 <[email protected]> --------- Signed-off-by: mineme0110 <[email protected]> --------- Signed-off-by: Shota Jolbordi <[email protected]> Signed-off-by: mineme0110 <[email protected]> Co-authored-by: shotexa <[email protected]> Co-authored-by: Ezequiel Postan <[email protected]> Co-authored-by: Shailesh Patil <[email protected]>
1 parent 15e6865 commit 5ba1bd1

File tree

489 files changed

+3961
-22542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

489 files changed

+3961
-22542
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fetch-depth: 0
2626
- name: Mega-Linter
2727
id: ml
28-
uses: megalinter/megalinter@v6
28+
uses: megalinter/megalinter@v7
2929
- name: Archive production artifacts
3030
if: success() || failure()
3131
uses: actions/upload-artifact@v3

.github/workflows/unit-tests.yml

-10
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ jobs:
3636
if: always()
3737
run: sbt coverageReport coverageAggregate
3838

39-
- name: Aggregate test reports
40-
if: always()
41-
run: |
42-
for reports in `find -name test-reports`; do
43-
project=${reports%/target/*}
44-
dest=target/test-reports/$project
45-
mkdir -p $dest
46-
cp $reports/* $dest
47-
done
48-
4939
- name: Publish Backend Unit Test Results
5040
if: always()
5141
uses: EnricoMi/publish-unit-test-result-action@v1

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ out/
2020
**/.bloop/
2121
*.worksheet.sc
2222
**/metals.sbt
23-
prism-interactive-demo-web/src/protos/intdemo
24-
*.aux
23+
*.aux
2524
*.toc
2625
*.pdf
2726
.idea_modules
@@ -35,3 +34,4 @@ mill
3534
client-storage.txt
3635
.bsp
3736
*.sc
37+
megalinter-reports

.mega-linter.yml

+20-18
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@
44
APPLY_FIXES: all
55
DEFAULT_BRANCH: main
66
DISABLE_LINTERS: [
7-
REPOSITORY_DEVSKIM,
8-
REPOSITORY_GITLEAKS,
9-
DOCKERFILE_HADOLINT,
10-
REPOSITORY_TRIVY,
11-
REPOSITORY_CHECKOV,
12-
REPOSITORY_SECRETLINT,
13-
SCALA_SCALAFIX,
14-
SQL_TSQLLINT,
15-
C_CPPLINT, # For pollux/lib/anoncreds/src/main/c
16-
CPP_CPPLINT, # For pollux/lib/anoncreds/src/main/c
17-
JAVA_CHECKSTYLE, # For pollux/lib/anoncreds/src/main/java
7+
REPOSITORY_DEVSKIM,
8+
REPOSITORY_GITLEAKS,
9+
DOCKERFILE_HADOLINT,
10+
REPOSITORY_TRIVY,
11+
REPOSITORY_CHECKOV,
12+
REPOSITORY_SECRETLINT,
13+
SCALA_SCALAFIX,
14+
SQL_TSQLLINT,
15+
C_CPPLINT, # For pollux/lib/anoncreds/src/main/c
16+
CPP_CPPLINT, # For pollux/lib/anoncreds/src/main/c
17+
JAVA_CHECKSTYLE, # For pollux/lib/anoncreds/src/main/java
1818
]
1919
DISABLE_ERRORS_LINTERS: [
20-
KOTLIN_KTLINT,
21-
PROTOBUF_PROTOLINT,
22-
OPENAPI_SPECTRAL,
23-
MARKDOWN_MARKDOWN_LINK_CHECK,
20+
KOTLIN_KTLINT,
21+
PROTOBUF_PROTOLINT,
22+
OPENAPI_SPECTRAL,
23+
MARKDOWN_MARKDOWN_LINK_CHECK,
24+
REPOSITORY_TRUFFLEHOG,
25+
REPOSITORY_KICS,
2426
]
2527

2628
DISABLE: [COPYPASTE, SPELL, CREDENTIALS]
@@ -37,13 +39,13 @@ BASH_SHELLCHECK_DISABLE_ERRORS: true
3739
# that could lead to new files in workspace created
3840
# with CLRF instead of CL due docker/python/git chain
3941
PRE_COMMANDS:
40-
- command: git config --global core.autocrlf input
41-
cwd: "workspace"
42+
- command: git config --global core.autocrlf input
43+
cwd: "workspace"
4244

4345
# Linter customisation
4446
MARKDOWN_MARKDOWN_LINK_CHECK_FILTER_REGEX_EXCLUDE: "CHANGELOG.md"
4547
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: "CHANGELOG.md"
46-
SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-option
48+
SQL_SQL_LINT_ARGUMENTS: -d postgres --ignore-errors=postgres-invalid-alter-option,postgres-invalid-create-option
4749
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"
4850
YAML_PRETTIER_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"
4951
YAML_V8R_FILTER_REGEX_EXCLUDE: "infrastructure/charts/node/*"

CHANGELOG.md

-13
This file was deleted.

CONTRIBUTING.md

-138
This file was deleted.

0 commit comments

Comments
 (0)