Skip to content

Commit

Permalink
Crypto libs (#115)
Browse files Browse the repository at this point in the history
* added ecdsa384 lib

* added rsassapss

* try fix ci

* fix callvalue

* Added tests covering the `verify` and `_isOnCurve` functions

* fix coverage

* split getModifiedSigOrPubKey into modifyLeft and modifyRight

* Added tests covering the RSASSAPSS lib

* switched to assert two unreachable conditions

* fixed typos in test

* removed unused functions in U384 lib

* added test for a U384.cmp function

* trying to fix test for cmp

* add brainpoolP384r1 test

---------

Co-authored-by: aritkulova <[email protected]>
  • Loading branch information
Arvolear and aritkulova authored Nov 19, 2024
1 parent f0443c5 commit d7bb26f
Show file tree
Hide file tree
Showing 11 changed files with 1,690 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Run coverage
env:
NODE_OPTIONS: "--max_old_space_size=8192"
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
- name: Run tests
env:
NODE_OPTIONS: "--max_old_space_size=8192"
run: npm run test
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@
Solidity modules and utilities that **go far beyond mediocre solidity**.

- Implementation of [**Contracts Registry**](https://eips.ethereum.org/EIPS/eip-6224) pattern
- Versatile access control smart contracts (**Merkle whitelists**, **RBAC**)
- Enhanced and simplified [**Diamond**](https://eips.ethereum.org/EIPS/eip-2535) pattern
- State-of-the-art cryptography primitives (**ECDSA over 384 bit curves**, **RSASSA-PSS**)
- Advanced data structures (**Vector**, **DynamicSet**, **PriorityQueue**, **AVLTree**)
- ZK-friendly [**Sparse Merkle Tree**](https://docs.iden3.io/publications/pdfs/Merkle-Tree.pdf) and [**Incremental Merkle Tree**](https://github.com/runtimeverification/deposit-contract-verification/blob/master/deposit-contract-verification.pdf) implementations
- Flexible finance primitives (**Staking**, **Vesting**)
- Versatile access control smart contracts (**Merkle whitelists**, **RBAC**)
- Enhanced and simplified [**Diamond**](https://eips.ethereum.org/EIPS/eip-2535) pattern
- Flexible finance instruments (**Staking**, **Vesting**)
- Robust UniswapV2 and UniswapV3 oracles
- Lightweight SBT implementation
- Utilities to ease work with memory, ERC20 decimals, arrays, sets, and ZK proofs
- Utilities to ease work with memory, types, ERC20 decimals, arrays, sets, and ZK proofs

Built with the help of [Openzeppelin Contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) (4.9.6).
Built leveraging [OpenZeppelin Contracts](https://github.com/OpenZeppelin/openzeppelin-contracts) (4.9.6).

## Overview

Expand Down
Loading

0 comments on commit d7bb26f

Please sign in to comment.