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

chore/remove file #25

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
25b2bcf
feat(cache): add caching interface (#1229)
TimoGlastra Jan 20, 2023
0f6d231
feat(proofs): sort credentials based on revocation (#1225)
TimoGlastra Jan 20, 2023
b6ae948
chore: deprecate injectionContainer on agent (#1241)
TimoGlastra Jan 26, 2023
e8d6ac3
feat(indy-vdr): add indy-vdr package and indy vdr pool (#1160)
Vickysomtee Jan 26, 2023
13f3740
feat(anoncreds): add legacy indy credential format (#1220)
TimoGlastra Jan 29, 2023
b5eb08e
feat(indy-vdr): did:sov resolver (#1247)
genaris Jan 30, 2023
acdb20a
feat(indy-vdr): use @hyperledger packages (#1252)
genaris Feb 2, 2023
f1e4937
ci: forceExit and bail tests (#1266)
TimoGlastra Feb 5, 2023
3a4c5ec
feat(anoncreds): add anoncreds API (#1232)
TimoGlastra Feb 6, 2023
7f65ba9
feat: optional routing for legacy connectionless invitation (#1271)
jimezesinachi Feb 6, 2023
3d86e78
feat(openid4vc-client): pre-authorized (#1243)
karimStekelenburg Feb 6, 2023
115d897
build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#1258)
dependabot[bot] Feb 6, 2023
f18d189
feat: add initial askar package (#1211)
genaris Feb 7, 2023
d056316
feat(indy-vdr): add IndyVdrAnonCredsRegistry (#1270)
Vickysomtee Feb 10, 2023
86cb9d0
ci: increase maximum heap memory for node (#1280)
genaris Feb 10, 2023
1d487b1
feat: added endpoint setter to agent InitConfig (#1278)
jimezesinachi Feb 10, 2023
2669d7d
fix: set updateAt on records when updating a record (#1272)
KolbyRKunz Feb 10, 2023
efe0271
feat: add anoncreds-rs package (#1275)
genaris Feb 10, 2023
30857b9
fix(transport)!: added docs moved connection to connectionId (#1222)
berendsliedrecht Feb 11, 2023
60bde6d
chore(core): remove useless file
berendsliedrecht Feb 12, 2023
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
22 changes: 22 additions & 0 deletions .github/actions/setup-libssl/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Setup libSSL
description: Install libssl and libssl-dev 1.1
author: 'gentilester@gmail.com'

runs:
using: composite
steps:
- name: Install libssl1.1
run: |
curl http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb -o libssl1.1.deb
sudo dpkg -i libssl1.1.deb
shell: bash

- name: Instal libssl-dev.1.1
run: |
curl http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1-1ubuntu2.1~18.04.21_amd64.deb -o libssl-dev1.1.deb
sudo dpkg -i libssl-dev1.1.deb
shell: bash

branding:
icon: scissors
color: purple
2 changes: 1 addition & 1 deletion .github/actions/setup-postgres-wallet-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
# so pointing rust version to 1.63.0
- name: Setup Postgres wallet plugin
run: |
sudo apt-get install -y libzmq3-dev libsodium-dev pkg-config libssl-dev
sudo apt-get install -y libzmq3-dev libsodium-dev pkg-config
curl https://sh.rustup.rs -sSf | bash -s -- -y
export PATH="/root/.cargo/bin:${PATH}"
rustup default 1.63.0
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
TEST_AGENT_PUBLIC_DID_SEED: 000000000000000000000000Trustee9
GENESIS_TXN_PATH: network/genesis/local-genesis.txn
LIB_INDY_STRG_POSTGRES: /home/runner/work/aries-framework-javascript/indy-sdk/experimental/plugins/postgres_storage/target/release # for Linux
NODE_OPTIONS: --max_old_space_size=4096

# Make sure we're not running multiple release steps at the same time as this can give issues with determining the next npm version to release.
# Ideally we only add this to the 'release' job so it doesn't limit PR runs, but github can't guarantee the job order in that case:
Expand All @@ -25,7 +26,7 @@ jobs:
# validation scripts. To still be able to run the CI we can manually trigger it by adding the 'ci-test'
# label to the pull request
ci-trigger:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
triggered: ${{ steps.check.outputs.triggered }}
steps:
Expand All @@ -44,13 +45,16 @@ jobs:
echo "::set-output name=triggered::${SHOULD_RUN}"

validate:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Validate
steps:
- name: Checkout aries-framework-javascript
uses: actions/checkout@v2

# setup dependencies
- name: Setup Libssl
uses: ./.github/actions/setup-libssl

- name: Setup Libindy
uses: ./.github/actions/setup-libindy

Expand All @@ -75,7 +79,7 @@ jobs:
run: yarn build

integration-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Integration Tests

strategy:
Expand All @@ -87,6 +91,9 @@ jobs:
uses: actions/checkout@v2

# setup dependencies
- name: Setup Libssl
uses: ./.github/actions/setup-libssl

- name: Setup Libindy
uses: ./.github/actions/setup-libindy
- name: Setup Indy Pool
Expand All @@ -108,13 +115,13 @@ jobs:
run: yarn install

- name: Run tests
run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test --coverage
run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test --coverage --forceExit --bail

- uses: codecov/codecov-action@v1
if: always()

version-stable:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Release stable
needs: [integration-test, validate]
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
Expand All @@ -126,6 +133,9 @@ jobs:
fetch-depth: 0

# setup dependencies
- name: Setup Libssl
uses: ./.github/actions/setup-libssl

- name: Setup Libindy
uses: ./.github/actions/setup-libindy

Expand Down
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04 as base
FROM ubuntu:22.04 as base

ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -9,7 +9,15 @@ RUN apt-get update -y && apt-get install -y \
# Only needed to build indy-sdk
build-essential \
git \
libzmq3-dev libsodium-dev pkg-config libssl-dev
libzmq3-dev libsodium-dev pkg-config

# libssl1.1 (required by libindy)
RUN curl http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.21_amd64.deb -o libssl1.1.deb
RUN dpkg -i libssl1.1.deb

# libssl-dev1.1 (required to compile libindy with posgres plugin)
RUN curl http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1-1ubuntu2.1~18.04.21_amd64.deb -o libssl-dev1.1.deb
RUN dpkg -i libssl-dev1.1.deb

# libindy
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
Expand Down
31 changes: 31 additions & 0 deletions packages/anoncreds-rs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<p align="center">
<br />
<img
alt="Hyperledger Aries logo"
src="https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/aa31131825e3331dc93694bc58414d955dcb1129/images/aries-logo.png"
height="250px"
/>
</p>
<h1 align="center"><b>Aries Framework JavaScript AnonCreds RS Module</b></h1>
<p align="center">
<a
href="https://raw.githubusercontent.com/hyperledger/aries-framework-javascript/main/LICENSE"
><img
alt="License"
src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"
/></a>
<a href="https://www.typescriptlang.org/"
><img
alt="typescript"
src="https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg"
/></a>
<a href="https://www.npmjs.com/package/@aries-framework/anoncreds-rs"
><img
alt="@aries-framework/anoncreds-rs version"
src="https://img.shields.io/npm/v/@aries-framework/anoncreds-rs"
/></a>

</p>
<br />

AnonCreds RS module for [Aries Framework JavaScript](https://github.com/hyperledger/aries-framework-javascript.git).
14 changes: 14 additions & 0 deletions packages/anoncreds-rs/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Config } from '@jest/types'

import base from '../../jest.config.base'

import packageJson from './package.json'

const config: Config.InitialOptions = {
...base,
name: packageJson.name,
displayName: packageJson.name,
setupFilesAfterEnv: ['./tests/setup.ts'],
}

export default config
41 changes: 41 additions & 0 deletions packages/anoncreds-rs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@aries-framework/anoncreds-rs",
"main": "build/index",
"types": "build/index",
"version": "0.3.3",
"private": true,
"files": [
"build"
],
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"homepage": "https://github.com/hyperledger/aries-framework-javascript/tree/main/packages/anoncreds-rs",
"repository": {
"type": "git",
"url": "https://github.com/hyperledger/aries-framework-javascript",
"directory": "packages/anoncreds-rs"
},
"scripts": {
"build": "yarn run clean && yarn run compile",
"clean": "rimraf ./build",
"compile": "tsc -p tsconfig.build.json",
"prepublishOnly": "yarn run build",
"test": "jest"
},
"dependencies": {
"@aries-framework/core": "0.3.3",
"@aries-framework/anoncreds": "0.3.3",
"@hyperledger/anoncreds-shared": "^0.1.0-dev.5",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"rxjs": "^7.2.0",
"tsyringe": "^4.7.0"
},
"devDependencies": {
"@hyperledger/anoncreds-nodejs": "^0.1.0-dev.5",
"rimraf": "^4.0.7",
"typescript": "~4.9.4"
}
}
29 changes: 29 additions & 0 deletions packages/anoncreds-rs/src/AnonCredsRsModule.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { DependencyManager, Module } from '@aries-framework/core'

import {
AnonCredsHolderServiceSymbol,
AnonCredsIssuerServiceSymbol,
AnonCredsVerifierServiceSymbol,
} from '@aries-framework/anoncreds'

import { AnonCredsRsHolderService, AnonCredsRsIssuerService, AnonCredsRsVerifierService } from './services'

export class AnonCredsRsModule implements Module {
public register(dependencyManager: DependencyManager) {
try {
// eslint-disable-next-line import/no-extraneous-dependencies
require('@hyperledger/anoncreds-nodejs')
} catch (error) {
try {
require('@hyperledger/anoncreds-react-native')
} catch (error) {
throw new Error('Could not load anoncreds bindings')
}
}

// Register services
dependencyManager.registerSingleton(AnonCredsHolderServiceSymbol, AnonCredsRsHolderService)
dependencyManager.registerSingleton(AnonCredsIssuerServiceSymbol, AnonCredsRsIssuerService)
dependencyManager.registerSingleton(AnonCredsVerifierServiceSymbol, AnonCredsRsVerifierService)
}
}
7 changes: 7 additions & 0 deletions packages/anoncreds-rs/src/errors/AnonCredsRsError.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { AriesFrameworkError } from '@aries-framework/core'

export class AnonCredsRsError extends AriesFrameworkError {
public constructor(message: string, { cause }: { cause?: Error } = {}) {
super(message, { cause })
}
}
5 changes: 5 additions & 0 deletions packages/anoncreds-rs/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Services
export * from './services'

// Module
export { AnonCredsRsModule } from './AnonCredsRsModule'
Loading