Skip to content

Commit

Permalink
Cleanup and setup scalaDID version to 0.1.0-M2
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro authored and mineme0110 committed Apr 30, 2024
1 parent 32955f5 commit 4e1477a
Show file tree
Hide file tree
Showing 25 changed files with 15 additions and 1,895 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ name: CI

on:
workflow_dispatch:
inputs:
make_snapshot_release:
description: "Publish libraries's SNAPSHOT"
default: false
type: boolean
required: false
pull_request:
branches-ignore:
- "gh-pages"
push:
branches: [master, main]
tags: ["v*"]
branches: [main]
# tags: ["v*"]

jobs:
Run-Tests:
Expand All @@ -26,25 +20,15 @@ jobs:
fetch-depth: 0 # Needed for the release tag // `git fetch --tags` will also work
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v14
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16" # or whatever
- name: Setup Scala.JS
uses: japgolly/setup-scalajs@v1
# - name: Setup Node
# uses: actions/setup-node@v2
# with:
# node-version: "16" # or whatever
# - name: Setup Scala.JS
# uses: japgolly/setup-scalajs@v1
- name: Cache sbt
uses: coursier/cache-action@v6.3
### Compile and TESTS ###
- run: sbt -mem 2048 -J-Xmx5120m "compileAll;testAll"
- run: sbt -mem 2048 -J-Xmx5120m "test"
# env:
# NODE_OPTIONS: "--openssl-legacy-provider"

- name: Release
if: ((inputs.make_snapshot_release == true) && (github.ref_name == 'master') || startsWith(github.ref, 'refs/tags/v'))
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
PACKAGES_GITHUB_TOKEN: ${{ secrets.PACKAGES_GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/sbt-dependency-submission.yml

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Atala Prism Mediator (DIDCOMMV2)
# Atala Prism Mediator (DIDCOMM v2)

A DIDCOMMV2 mediator
A DIDCOMM v2 mediator
A service that receives messages for many agents at a single endpoint and stores them with privacy.
A cloud-based agent that forwards messages to mobile devices.

```mermaid
graph LR
A((Sender)) -- forward --> M((Mediator))
M--Pickup-->D((Reciever))
M--pickup-->D((Reciever))
```

Expand All @@ -16,13 +16,12 @@ A cloud-based agent that forwards messages to mobile devices.
- **CI** automate builds and tests all pushes to the main branch also as all PRs created.
- **Scala Steward** automate the creation of pull requests for libraries with updated dependencies, saving maintainers time and effort. It can also help ensure that libraries are kept up-to-date, improving their reliability and performance.

The future version of [**DID Comm v2.1**](https://identity.foundation/didcomm-messaging/spec/v2.1/) is been track&develop in the branch [`didcomm-v2.1`](https://github.com/FabioPinheiro/scala-did/tree/didcomm-v2.1)

**More documentation:**
- [LICENSE](LICENSE) - Apache License, Version 2.0

## Protocols
- [DONE] `BasicMessage 2.0` - https://didcomm.org/basicmessage/2.0
- [DONE] `MediatorCoordination 2.0` - https://didcomm.org/mediator-coordination/2.0
- [WIP] `MediatorCoordination 2.0` - https://didcomm.org/mediator-coordination/2.0
- [DONE] `Pickup 3` - https://didcomm.org/pickup/3.0
- [DONE] `TrustPing 2.0` - https://didcomm.org/trust-ping/2.0/
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ lazy val notYetPublishedConfigure: Project => Project = _.settings(

/** Versions */
lazy val V = new {
val scalaDID = "0.0.0+535-b2c0dfc5-SNAPSHOT"
val scalaDID = "0.1.0-M2"
// val scalajsJavaSecureRandom = "1.0.0"

// FIXME another bug in the test framework https://github.com/scalameta/munit/issues/554
Expand Down Expand Up @@ -72,7 +72,7 @@ lazy val V = new {
lazy val D = new {
val scalaDID = Def.setting("app.fmgp" %%% "did" % V.scalaDID)
val scalaDID_imp = Def.setting("app.fmgp" %%% "did-imp" % V.scalaDID)
val scalaDID_peer = Def.setting("app.fmgp" %%% "did-peer" % V.scalaDID)
val scalaDID_peer = Def.setting("app.fmgp" %%% "did-method-peer" % V.scalaDID)

// /** The [[java.security.SecureRandom]] is used by the [[java.util.UUID.randomUUID()]] method in [[MsgId]].
// *
Expand Down
39 changes: 0 additions & 39 deletions interoperability_check/Cargo.toml

This file was deleted.

161 changes: 0 additions & 161 deletions interoperability_check/src/did_doc/alice.rs

This file was deleted.

0 comments on commit 4e1477a

Please sign in to comment.