Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync with main #1

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5e8953e
Add Rust readme test (#1241)
eike-hass Jan 26, 2024
a929510
Credentials cannot be unrevoked with StatusList2021 (#1284)
UMR1352 Jan 26, 2024
c0f15f6
Adapt to IOTA sandbox (#1290)
eike-hass Feb 2, 2024
22f042a
Fix RevocationBitmap2022 encoding bug (#1292)
UMR1352 Feb 6, 2024
1a030d5
Update `sd-jwt-payload` dependency (#1296)
abdulmth Feb 6, 2024
a7576ee
Release v1.1.0 (#1297)
github-actions[bot] Feb 7, 2024
9904aa5
Release wasm-v1.1.0 (#1298)
github-actions[bot] Feb 7, 2024
6127d5d
Fix compilation error caused by the `roaring` crate (#1306)
abdulmth Feb 19, 2024
5b975bb
Release v1.1.1 (#1308)
github-actions[bot] Feb 19, 2024
48696c6
Add `get_public_key` for `StrongholdStorage` (#1311)
abdulmth Feb 21, 2024
41105e5
Support multiple IOTA networks in the `Resolver` (#1304)
abdulmth Feb 21, 2024
f3ecfbb
Add new Verification method type (#1305)
lucagiorgino Feb 29, 2024
d51910f
Allow setting additional controllers for `IotaDocument`. (#1314)
abdulmth Feb 29, 2024
4f0db11
Fix example crate compilation with `--no-default-features` (#1317)
abdulmth Feb 29, 2024
28cc8c6
Include examples in cargo check (#1319)
eike-hass Feb 29, 2024
59d38f7
Add constructor for VerificationMethod in TS (#1321)
abdulmth Mar 6, 2024
0794379
Wasm bindings for `BlockChainAccountId` verification method. (#1326)
abdulmth Mar 6, 2024
edb9150
use latest release of sd-jwt-payload (#1333)
UMR1352 Mar 12, 2024
0af29fc
Feat/custom verification method (#1334)
UMR1352 Mar 18, 2024
4a144a3
fix readme links (#1336)
eike-hass Mar 19, 2024
e53561e
allow large result err variants (#1342)
UMR1352 Mar 26, 2024
e68538f
gRPC bindings (#1264)
UMR1352 Mar 26, 2024
0352b84
Support %-encoded characters in DID method id (#1303)
UMR1352 Mar 27, 2024
1aba4b5
removed dev_dep version
eike-hass Mar 27, 2024
84a630d
Release v1.2.0 (#1347)
github-actions[bot] Mar 27, 2024
1e9c9a3
Release wasm-v1.2.0 (#1345)
github-actions[bot] Mar 27, 2024
30c9bf2
inherit `repository` in identity_verification (#1348)
Foorack Apr 2, 2024
993cfec
add inx-faucet profile (#1356)
UMR1352 Apr 26, 2024
f59e75a
Fix dockerhub workflow (#1343)
eike-hass Apr 30, 2024
edec26c
Arbitrary data signing service (#1350)
UMR1352 Apr 30, 2024
51aedd5
Use STRONGHOLD_PWD_FILE env variable to pass stronghold's password (#…
UMR1352 Apr 30, 2024
149bfac
Fix findings after clippy update (#1365)
wulfraem May 13, 2024
9abdb38
Add EcDSA verifier (#1353)
Aconitin May 14, 2024
b634ead
Support for specification-compliant verification method type `JsonWeb…
UMR1352 May 24, 2024
f25c593
Add ZK BBS+-based selectively disclosable credentials (JPT) (#1355)
UMR1352 May 24, 2024
2c758ec
Release v1.3.0 (#1370)
github-actions[bot] May 28, 2024
3236665
Release wasm-v1.3.0 (#1369)
github-actions[bot] May 28, 2024
c69566c
update readmes (#1371)
eike-hass May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target/
bindings/wasm/
bindings/grpc/target/
36 changes: 36 additions & 0 deletions .github/actions/iota-sandbox/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'iota-sandbox-setup'
description: 'Setup IOTA Sandbox'
runs:
using: "composite"
steps:
- name: Setup iota sandbox
shell: bash
run: |
# Use next lines for using the GitHub release
mkdir iota-sandbox
cd iota-sandbox
mkdir sandbox
cd sandbox
# Use the output of https://api.github.com/repos/iotaledger/iota-sandbox/releases/latest
DOWNLOAD_URL=$(curl "https://api.github.com/repos/iotaledger/iota-sandbox/releases" | jq -r '.[0].assets[] | select(.name | contains("iota_sandbox")) | .browser_download_url')
echo "Downloading sandbox from $DOWNLOAD_URL"
curl -L -o iota_sandbox.tar.gz $DOWNLOAD_URL
tar -xf iota_sandbox.tar.gz

# Use the next lines to use the main branch
# git clone https://github.com/iotaledger/iota-sandbox
# cd iota-sandbox/sandbox

# Start Tangle
sudo ./bootstrap.sh
docker compose --profile inx-faucet up -d
- name: Wait for tangle to start
shell: bash
run: wget -qO- https://raw.githubusercontent.com/eficode/wait-for/$WAIT_FOR_VERSION/wait-for | sh -s -- -t 60 http://localhost/health -- echo "Tangle is up"
env:
WAIT_FOR_VERSION: 4df3f9262d84cab0039c07bf861045fbb3c20ab7 # v2.2.3
- name: Wait for faucet to start
shell: bash
run: wget -qO- https://raw.githubusercontent.com/eficode/wait-for/$WAIT_FOR_VERSION/wait-for | sh -s -- -t 60 http://localhost/faucet/api/info -- echo "Faucet is up"
env:
WAIT_FOR_VERSION: 4df3f9262d84cab0039c07bf861045fbb3c20ab7 # v2.2.3
12 changes: 12 additions & 0 deletions .github/actions/iota-sandbox/tear-down/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'iota-sandbox-tear-down'
description: 'tear-down a iota sandbox'
runs:
using: "composite"
steps:
- name: Tear down iota sandbox
shell: bash
run: |
cd iota-sandbox/sandbox
docker-compose down
cd ../..
sudo rm -rf iota-sandbox
44 changes: 0 additions & 44 deletions .github/actions/private-tangle/setup/action.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/private-tangle/tear-down/action.yml

This file was deleted.

19 changes: 17 additions & 2 deletions .github/actions/rust/rust-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@ runs:
shell: bash
run: |

if ! rustup self update; then
# self update is currently broken on Windows runners:
# https://github.com/rust-lang/rustup/issues/3709
# so we'll skip self update for windows
OS=${{ inputs.os }}
IS_WINDOWS=false; [[ $OS =~ ^[wW]indows ]] && IS_WINDOWS=true

if [[ $IS_WINDOWS = true ]] ;
then
echo "skipping self update on windows runner due to https://github.com/rust-lang/rustup/issues/3709"
elif ! rustup self update; then
echo "rustup self update failed"
fi

Expand All @@ -57,7 +66,13 @@ runs:
rustup target add $TARGET
fi

rustup update
if [[ $IS_WINDOWS = true ]] ;
then
echo "skipping self update on windows runner due to https://github.com/rust-lang/rustup/issues/3709"
rustup update --no-self-update
else
rustup update
fi

TOOLCHAIN=${{ inputs.toolchain }}
if [[ $TOOLCHAIN != 'stable' ]]; then
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/build-and-test-grpc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and run grpc tests

on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
branches:
- main
- 'epic/**'
- 'support/**'
paths:
- '.github/workflows/build-and-test.yml'
- '.github/actions/**'
- '**.rs'
- '**.toml'
- 'bindings/grpc/**'

jobs:
check-for-run-condition:
runs-on: ubuntu-latest
outputs:
should-run: ${{ !github.event.pull_request || github.event.pull_request.draft == false }}
steps:
- run: |
# this run step does nothing, but is needed to get the job output

build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Build Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: bindings/grpc/Dockerfile
push: false
labels: iotaledger/identity-grpc:latest
34 changes: 24 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Ensure, OpenSSL is available in Windows
if: matrix.os == 'windows-latest'
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md

- name: Setup Rust and cache
uses: './.github/actions/rust/rust-setup'
with:
Expand All @@ -101,15 +107,15 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
cargo metadata --format-version 1 | \
jq -r '.workspace_members[] | select(contains("examples") | not)' | \
jq -r '.workspace_members[]' | \
awk '{print $1}' | \
xargs -I {} cargo check -p {} --no-default-features

- name: Check default features
if: matrix.os == 'ubuntu-latest'
run: |
cargo metadata --format-version 1 | \
jq -r '.workspace_members[] | select(contains("examples") | not)' | \
jq -r '.workspace_members[]' | \
awk '{print $1}' | \
xargs -I {} cargo check -p {}

Expand All @@ -123,9 +129,9 @@ jobs:
- name: Build with all features
run: cargo build --workspace --tests --examples --all-features --release

- name: Start private tangle
- name: Start iota sandbox
if: matrix.os == 'ubuntu-latest'
uses: './.github/actions/private-tangle/setup'
uses: './.github/actions/iota-sandbox/setup'

- name: Run tests
run: cargo test --workspace --all-features --release
Expand All @@ -140,9 +146,17 @@ jobs:
parallel -k -j 4 --retries 3 --joblog report.log ./target/release/examples/{}
cat report.log

- name: Tear down private tangle
- name: Run Rust Readme examples
# run examples only on ubuntu for now
if: matrix.os == 'ubuntu-latest'
run: |
cd bindings/wasm
npm ci
npm run test:readme:rust

- name: Tear down iota sandbox
if: matrix.os == 'ubuntu-latest' && always()
uses: './.github/actions/private-tangle/tear-down'
uses: './.github/actions/iota-sandbox/tear-down'

- name: Stop sccache
uses: './.github/actions/rust/sccache/stop-sccache'
Expand Down Expand Up @@ -186,13 +200,13 @@ jobs:
name: identity-wasm-bindings-build
path: bindings/wasm

- name: Start private tangle
uses: './.github/actions/private-tangle/setup'
- name: Start iota sandbox
uses: './.github/actions/iota-sandbox/setup'

- name: Run Wasm examples
run: npm run test:examples
working-directory: bindings/wasm

- name: Tear down private tangle
- name: Tear down iota sandbox
if: always()
uses: './.github/actions/private-tangle/tear-down'
uses: './.github/actions/iota-sandbox/tear-down'
53 changes: 53 additions & 0 deletions .github/workflows/grpc-publish-to-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: gRPC publish to dockerhub

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to publish under, defaults to latest'
required: false
default: latest
branch:
description: 'Branch to run publish from'
required: true
dry-run:
description: 'Run in dry-run mode'
type: boolean
required: false
default: true

jobs:
push_to_registry:
environment: release
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }}
password: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: bindings/grpc/Dockerfile
push: ${{ !inputs.dry-run }}
tags: iotaledger/identity-grpc:${{ inputs.tag }}

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae
if: ${{ !inputs.dry-run }}
with:
username: ${{ secrets.IOTALEDGER_DOCKER_USERNAME }}
password: ${{ secrets.IOTALEDGER_DOCKER_PASSWORD }}
repository: iotaledger/identity-grpc
readme-filepath: ./bindings/grpc/README.md
short-description: ${{ github.event.repository.description }}

2 changes: 1 addition & 1 deletion .license_template
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Copyright {20\d{2}(-20\d{2})?} IOTA Stiftung
// Copyright {20\d{2}(-20\d{2})?} IOTA Stiftung{(?:, .+)?}
// SPDX-License-Identifier: Apache-2.0
Loading
Loading