|
1 |
| -> This repository is currently under development and not ready for production use ⚠️ |
| 1 | +> ❌ This repository is deprecated. Please refer to the [crypto-lib](https://github.com/get-smooth/CryptoLib) repository |
| 2 | +> to find the latest implementation of the secp256r1 curve. |
2 | 3 |
|
3 | 4 | # secp256r1 verify
|
4 | 5 |
|
|
10 | 11 |
|
11 | 12 | [github-editor-url]: https://github.dev/get-smooth/secp256r1-verify/tree/main
|
12 | 13 | [github-editor-badge]: https://img.shields.io/badge/Github-Open%20the%20Editor-purple?logo=github
|
13 |
| -[gha-quality-url]: |
14 |
| - https://github.com/get-smooth/secp256r1-verify/actions/workflows/quality-checks.yml |
| 14 | +[gha-quality-url]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/quality-checks.yml |
15 | 15 | [gha-quality-badge]:
|
16 | 16 | https://github.com/get-smooth/secp256r1-verify/actions/workflows/quality-checks.yml/badge.svg?branch=main
|
17 | 17 | [gha-test-url]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/tests.yml
|
18 |
| -[gha-test-badge]: |
19 |
| - https://github.com/get-smooth/secp256r1-verify/actions/workflows/tests.yml/badge.svg?branch=main |
20 |
| -[gha-static-analysis-url]: |
21 |
| - https://github.com/get-smooth/secp256r1-verify/actions/workflows/static-analysis.yml |
| 18 | +[gha-test-badge]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/tests.yml/badge.svg?branch=main |
| 19 | +[gha-static-analysis-url]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/static-analysis.yml |
22 | 20 | [gha-static-analysis-badge]:
|
23 | 21 | https://github.com/get-smooth/template-foundry/actions/workflows/static-analysis.yml/badge.svg?branch=main
|
24 |
| -[gha-release-url]: |
25 |
| - https://github.com/get-smooth/secp256r1-verify/actions/workflows/release-package.yml |
26 |
| -[gha-release-badge]: |
27 |
| - https://github.com/get-smooth/secp256r1-verify/actions/workflows/release-package.yml/badge.svg |
| 22 | +[gha-release-url]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/release-package.yml |
| 23 | +[gha-release-badge]: https://github.com/get-smooth/secp256r1-verify/actions/workflows/release-package.yml/badge.svg |
28 | 24 | [foundry]: https://book.getfoundry.sh/
|
29 | 25 | [foundry-badge]: https://img.shields.io/badge/Built%20with-Foundry-FFDB1C.svg
|
30 | 26 | [license]: ./LICENSE.md
|
@@ -53,6 +49,16 @@ This command will install the latest version of the package in your lib director
|
53 | 49 | library, follow the instructions in the
|
54 | 50 | [official Foundry documentation](https://book.getfoundry.sh/reference/forge/forge-install?highlight=forge%20install#forge-install).
|
55 | 51 |
|
| 52 | +### Hardhat or Truffle |
| 53 | + |
| 54 | +To install the `secp256r1-verify` package in a Hardhat or Truffle project, use `npm` to run the following command: |
| 55 | + |
| 56 | +```sh |
| 57 | +npm install @smoo.th/secp256r1-verify |
| 58 | +``` |
| 59 | + |
| 60 | +After the installation, import the package into your project and use it. |
| 61 | + |
56 | 62 | ## Usage
|
57 | 63 |
|
58 | 64 | This repository provides a unique verification implementation. After you've integrated this library into your project,
|
@@ -82,8 +88,7 @@ scripts are expected to be run using the `forge script` command.
|
82 | 88 | ## Gas reports
|
83 | 89 |
|
84 | 90 | These gas reports were produced using the `0.8.19` version of the Solidity compiler (with 100k optimizer runs),
|
85 |
| -specifically for the |
86 |
| -[`0.4.1`](https://github.com/get-smooth/secp256r1-verify/releases/tag/v0.4.1) version of the |
| 91 | +specifically for the [`0.4.1`](https://github.com/get-smooth/secp256r1-verify/releases/tag/v0.4.1) version of the |
87 | 92 | library. The library version corresponds to commit
|
88 | 93 | [4d0716f](https://github.com/get-smooth/secp256r1-verify/commit/4d0716fc6fd14a92488442e1dd0c18bb2c24ff41).
|
89 | 94 |
|
|
0 commit comments