Skip to content

Commit

Permalink
support corev2 in polygon-js-sdk (#71)
Browse files Browse the repository at this point in the history
* support third-party dids for storing and proof generation.

* refactor auth handler to work with different packers

* Feature/v2 strict (#99)

* Removed universal DID Resolver

---------

Co-authored-by: vbasiuk <volodymyr.basiuck@gmail.com>

* add shared eslint & prettier (#102)

* fix node_aux - issue with filling node aux in revocation status

* support profiles (#105) in authorization / fetch handler / proof service

* modify IPFS tests
---------

Co-authored-by: Dimasik Kolezhniuk <d.kolezhiniyk@gmail.com>

* convert offerMessage.to to DID

* zero is valid value for revocationNonce

* sync onchain revocation with specification.

* add IZKProver interface

* update documentation

* add FSCircuitStore - file storage for circuits

---------

Co-authored-by: vbasiuk <volodymyr.basiuck@gmail.com>
Co-authored-by: Ilya <officalbatya@gmail.com>
Co-authored-by: vmidyllic <74898029+vmidyllic@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 1, 2023
1 parent fde41c1 commit 6dc0aae
Show file tree
Hide file tree
Showing 115 changed files with 3,518 additions and 2,803 deletions.
21 changes: 2 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"project": ["tsconfig.json", "tsconfig.test.json"]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": 1, // Means warning
"prettier/prettier": 2, // Means error
"@typescript-eslint/no-floating-promises": ["error"]
},
"ignorePatterns": ["dist", "node_modules"]
}
"extends": ["@iden3/eslint-config"]
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-name: "@iden3*"
reviewers:
- "Kolezhniuk"
- "vmidyllic"
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
matrix:
version: [18.16.1]
timeout-minutes: 7
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -54,6 +54,7 @@ jobs:

- name: Run Tests
env:
IPFS_URL: ${{ secrets.IPFS_URL }}
WALLET_KEY: ${{ secrets.WALLET_KEY }}
RPC_URL: ${{ secrets.RPC_URL }}
RHS_URL: ${{ secrets.RHS_URL }}
Expand Down
7 changes: 1 addition & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{
"semi": true,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 100
}
"@iden3/eslint-config/prettier"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ SDK to work with Polygon ID using JavaScript and TypeScript languages.

## Disclaimer

Polygon ID JS SDK is in public beta. It may still contain bugs or missing functionality.
We provide limited support for it and would love to hear your feedback.
Polygon ID JS SDK is in public now. It may still contain bugs or missing functionality, that it will be added in next versions.

## Usage

Expand Down Expand Up @@ -33,6 +32,8 @@ To run them, please set following variables:
export WALLET_KEY="...key in hex format"
export RPC_URL="...url to polygon network rpc node"
export RHS_URL="..reverse hash service url"
export IPFS_URL="url for ipfs"

```

And place actual circuits to `test/proofs/testdata`
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
}
}
);
console.log(did.toString());
console.assert(did.toString() === 'did:iden3:polygon:mumbai:wzokvZ6kMoocKJuSbftdZxTD6qvayGpJb3m4FVXth');
console.log(did.string());
console.assert(did.string() === 'did:iden3:polygon:mumbai:wzokvZ6kMoocKJuSbftdZxTD6qvayGpJb3m4FVXth');

};
run().catch(console.error);
Expand Down
Loading

0 comments on commit 6dc0aae

Please sign in to comment.