|
| 1 | +# ECDSA Tools |
| 2 | +[heading__top]: |
| 3 | + #ecdsa-tools |
| 4 | + "⬆ Example of using Ethers JS and MetaMask for ECDSA signature creation and verification" |
| 5 | + |
| 6 | + |
| 7 | +Example of using Ethers JS and MetaMask for ECDSA signature creation and verification |
| 8 | + |
| 9 | +## [![Byte size of Ecdsa Tools][badge__main__ecdsa_tools__source_code]][ecdsa_tools__main__source_code] [![Open Issues][badge__issues__ecdsa_tools]][issues__ecdsa_tools] [![Open Pull Requests][badge__pull_requests__ecdsa_tools]][pull_requests__ecdsa_tools] [![Latest commits][badge__commits__ecdsa_tools__main]][commits__ecdsa_tools__main] [![ecdsa-tools Demos][badge__gh_pages__ecdsa_tools]][gh_pages__ecdsa_tools] [![GitHub Actions Build Status][badge__github_actions]][activity_log__github_actions] [![License][badge__license]][branch__current__license] |
| 10 | + |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | + |
| 15 | +- [:arrow_up: Top of Document][heading__top] |
| 16 | +- [:building_construction: Requirements][heading__requirements] |
| 17 | +- [:zap: Quick Start][heading__quick_start] |
| 18 | +- [🧰 Usage][heading__usage] |
| 19 | +- [🗒 Notes][heading__notes] |
| 20 | +- [:chart_with_upwards_trend: Contributing][heading__contributing] |
| 21 | + - [:trident: Forking][heading__forking] |
| 22 | + - [:currency_exchange: Sponsor][heading__sponsor] |
| 23 | +- [:card_index: Attribution][heading__attribution] |
| 24 | +- [:balance_scale: Licensing][heading__license] |
| 25 | + - [Commercial and/or proprietary use][heading__commercial_andor_proprietary_use] |
| 26 | + - [Non-commercial and FOSS use][heading__noncommercial_and_foss_use] |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +## Requirements |
| 35 | +[heading__requirements]: |
| 36 | + #requirements |
| 37 | + "🏗 Prerequisites and/or dependencies that this project needs to function properly" |
| 38 | + |
| 39 | + |
| 40 | +Access to GitHub Actions if using on GitHub, or manually assigning environment |
| 41 | +variables prior to running `npm test`. NodeJS dependencies may be installed |
| 42 | +via NPM... |
| 43 | + |
| 44 | +```Bash |
| 45 | +npm install |
| 46 | +``` |
| 47 | + |
| 48 | + |
| 49 | +______ |
| 50 | + |
| 51 | + |
| 52 | +## Quick Start |
| 53 | +[heading__quick_start]: |
| 54 | + #quick-start |
| 55 | + "⚡ Perhaps as easy as one, 2.0,..." |
| 56 | + |
| 57 | + |
| 58 | +Clone this project... |
| 59 | + |
| 60 | + |
| 61 | +**Linux/MacOS** |
| 62 | + |
| 63 | + |
| 64 | +```Bash |
| 65 | +mkdir -vp ~/git/hub/web-dev-examples |
| 66 | + |
| 67 | +cd ~/git/hub/web-dev-examples |
| 68 | + |
| 69 | +git clone git@github.com:web-dev-examples/ecdsa-tools.git |
| 70 | +``` |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +______ |
| 75 | + |
| 76 | + |
| 77 | +## Usage |
| 78 | +[heading__usage]: |
| 79 | + #usage |
| 80 | + "🧰 How to utilize this repository" |
| 81 | + |
| 82 | + |
| 83 | +- Transpile TypeScript source code into JavaScript |
| 84 | + ```bash |
| 85 | + npm run ts-build |
| 86 | + ``` |
| 87 | +- Transpile TypeScript **and** move third-party dependencies from |
| 88 | + `node_modules/` to `dist/` |
| 89 | + ```bash |
| 90 | + npm run ci-build |
| 91 | + ``` |
| 92 | +- Lint TypeScript source code |
| 93 | + ```bash |
| 94 | + npm run ts-lint |
| 95 | + ``` |
| 96 | +- Start development server on `http://localhost:8080` |
| 97 | + ```bash |
| 98 | + npm run serve |
| 99 | + ``` |
| 100 | + |
| 101 | + |
| 102 | +______ |
| 103 | + |
| 104 | + |
| 105 | +## Notes |
| 106 | +[heading__notes]: |
| 107 | + #notes |
| 108 | + "🗒 Additional things to keep in mind when developing" |
| 109 | + |
| 110 | + |
| 111 | +This repository may not be feature complete and/or fully functional, Pull |
| 112 | +Requests that add features or fix bugs are certainly welcomed. |
| 113 | + |
| 114 | + |
| 115 | +______ |
| 116 | + |
| 117 | + |
| 118 | +## Contributing |
| 119 | +[heading__contributing]: |
| 120 | + #contributing |
| 121 | + "📈 Options for contributing to ecdsa-tools and web-dev-examples" |
| 122 | + |
| 123 | + |
| 124 | +Options for contributing to ecdsa-tools and web-dev-examples |
| 125 | + |
| 126 | + |
| 127 | +--- |
| 128 | + |
| 129 | + |
| 130 | +### Forking |
| 131 | +[heading__forking]: |
| 132 | + #forking |
| 133 | + "🔱 Tips for forking ecdsa-tools" |
| 134 | + |
| 135 | + |
| 136 | +Start making a [Fork][ecdsa_tools__fork_it] of this repository to an account |
| 137 | +that you have write permissions for. |
| 138 | + |
| 139 | +- Add remote for fork URL. The URL syntax is |
| 140 | + _`git@github.com:<NAME>/<REPO>.git`_... |
| 141 | + |
| 142 | + |
| 143 | +```Bash |
| 144 | +cd ~/git/hub/web-dev-examples/ecdsa-tools |
| 145 | + |
| 146 | +git remote add fork git@github.com:<NAME>/ecdsa-tools.git |
| 147 | +``` |
| 148 | + |
| 149 | +- Commit your changes and push to your fork, eg. to fix an issue... |
| 150 | + |
| 151 | +```Bash |
| 152 | +cd ~/git/hub/web-dev-examples/ecdsa-tools |
| 153 | + |
| 154 | + |
| 155 | +git commit -F- <<'EOF' |
| 156 | +:bug: Fixes #42 Issue |
| 157 | +
|
| 158 | +
|
| 159 | +**Edits** |
| 160 | +
|
| 161 | +
|
| 162 | +- `<SCRIPT-NAME>` script, fixes some bug reported in issue |
| 163 | +EOF |
| 164 | + |
| 165 | + |
| 166 | +git push fork main |
| 167 | +``` |
| 168 | + |
| 169 | + |
| 170 | +> Note, the `-u` option may be used to set `fork` as the default remote, eg. |
| 171 | +> _`git push -u fork main`_ however, this will also default the `fork` remote |
| 172 | +> for pulling from too! Meaning that pulling updates from `origin` must be done |
| 173 | +> explicitly, eg. _`git pull origin main`_ |
| 174 | +
|
| 175 | +- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is |
| 176 | + _`https://github.com/<NAME>/<REPO>/pull/new/<BRANCH>`_ |
| 177 | + |
| 178 | +> Note; to decrease the chances of your Pull Request needing modifications |
| 179 | +> before being accepted, please check the |
| 180 | +> [dot-github](https://github.com/web-dev-examples/.github) repository for |
| 181 | +> detailed contributing guidelines. |
| 182 | +
|
| 183 | + |
| 184 | +--- |
| 185 | + |
| 186 | + |
| 187 | +### Sponsor |
| 188 | + [heading__sponsor]: |
| 189 | + #sponsor |
| 190 | + "💱 Methods for financially supporting web-dev-examples that maintains ecdsa-tools" |
| 191 | + |
| 192 | + |
| 193 | +Thanks for even considering it! |
| 194 | + |
| 195 | +Via Liberapay you may |
| 196 | +<sub>[![sponsor__shields_io__liberapay]][sponsor__link__liberapay]</sub> on a |
| 197 | +repeating basis. |
| 198 | + |
| 199 | +Regardless of if you're able to financially support projects such as |
| 200 | +ecdsa-tools that web-dev-examples maintains, please consider sharing projects |
| 201 | +that are useful with others, because one of the goals of maintaining Open |
| 202 | +Source repositories is to provide value to the community. |
| 203 | + |
| 204 | + |
| 205 | +______ |
| 206 | + |
| 207 | + |
| 208 | +## Attribution |
| 209 | +[heading__attribution]: |
| 210 | + #attribution |
| 211 | + "📇 Resources that where helpful in building this project so far." |
| 212 | + |
| 213 | + |
| 214 | +- [GitHub -- `github-utilities/make-readme`](https://github.com/github-utilities/make-readme) |
| 215 | + |
| 216 | + |
| 217 | +______ |
| 218 | + |
| 219 | + |
| 220 | +## License |
| 221 | +[heading__license]: |
| 222 | + #license |
| 223 | + "⚖ Legal side of Open Source" |
| 224 | + |
| 225 | +This project is licensed based on use-case |
| 226 | + |
| 227 | +### Commercial and/or proprietary use |
| 228 | +[heading__commercial_andor_proprietary_use]: #commercial-andor-proprietary-use |
| 229 | + |
| 230 | +If a project is **either** commercial or (`||`) proprietary, then please |
| 231 | +contact the author for pricing and licensing options to make use of code and/or |
| 232 | +features from this repository. |
| 233 | + |
| 234 | +--- |
| 235 | + |
| 236 | +### Non-commercial and FOSS use |
| 237 | +[heading__noncommercial_and_foss_use]: #noncommercial-and-foss-use |
| 238 | + |
| 239 | +If a project is **both** non-commercial and (`&&`) published with a license |
| 240 | +compatible with AGPL-3.0, then it may utilize code from this repository under |
| 241 | +the following terms. |
| 242 | + |
| 243 | +``` |
| 244 | +Example of using Ethers JS and MetaMask for ECDSA signature creation and verification |
| 245 | +Copyright (C) 2024 S0AndS0 |
| 246 | +
|
| 247 | +This program is free software: you can redistribute it and/or modify |
| 248 | +it under the terms of the GNU Affero General Public License as published |
| 249 | +by the Free Software Foundation, version 3 of the License. |
| 250 | +
|
| 251 | +This program is distributed in the hope that it will be useful, |
| 252 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 253 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 254 | +GNU Affero General Public License for more details. |
| 255 | +
|
| 256 | +You should have received a copy of the GNU Affero General Public License |
| 257 | +along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 258 | +``` |
| 259 | + |
| 260 | +For further details review full length version of |
| 261 | +[AGPL-3.0][branch__current__license] License. |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | +[branch__current__license]: |
| 266 | + /LICENSE |
| 267 | + "⚖ Full length version of AGPL-3.0 License" |
| 268 | + |
| 269 | +[badge__license]: |
| 270 | + https://img.shields.io/github/license/web-dev-examples/ecdsa-tools |
| 271 | + |
| 272 | +[badge__commits__ecdsa_tools__main]: |
| 273 | + https://img.shields.io/github/last-commit/web-dev-examples/ecdsa-tools/main.svg |
| 274 | + |
| 275 | +[commits__ecdsa_tools__main]: |
| 276 | + https://github.com/web-dev-examples/ecdsa-tools/commits/main |
| 277 | + "📝 History of changes on this branch" |
| 278 | + |
| 279 | + |
| 280 | +[ecdsa_tools__community]: |
| 281 | + https://github.com/web-dev-examples/ecdsa-tools/community |
| 282 | + "🌱 Dedicated to functioning code" |
| 283 | + |
| 284 | +[ecdsa_tools__gh_pages]: |
| 285 | + https://github.com/web-dev-examples/ecdsa-tools/tree/ |
| 286 | + "Source code examples hosted thanks to GitHub Pages!" |
| 287 | + |
| 288 | +[badge__gh_pages__ecdsa_tools]: |
| 289 | + https://img.shields.io/website/https/web-dev-examples.github.io/ecdsa-tools/index.html.svg?down_color=darkorange&down_message=Offline&label=Demo&logo=Demo%20Site&up_color=success&up_message=Online |
| 290 | + |
| 291 | +[gh_pages__ecdsa_tools]: |
| 292 | + https://web-dev-examples.github.io/ecdsa-tools/index.html |
| 293 | + "🔬 Check the example collection tests" |
| 294 | + |
| 295 | +[issues__ecdsa_tools]: |
| 296 | + https://github.com/web-dev-examples/ecdsa-tools/issues |
| 297 | + "☢ Search for and _bump_ existing issues or open new issues for project maintainer to address." |
| 298 | + |
| 299 | +[ecdsa_tools__fork_it]: |
| 300 | + https://github.com/web-dev-examples/ecdsa-tools/fork |
| 301 | + "🔱 Fork it!" |
| 302 | + |
| 303 | +[pull_requests__ecdsa_tools]: |
| 304 | + https://github.com/web-dev-examples/ecdsa-tools/pulls |
| 305 | + "🏗 Pull Request friendly, though please check the Community guidelines" |
| 306 | + |
| 307 | +[ecdsa_tools__main__source_code]: |
| 308 | + https://github.com/web-dev-examples/ecdsa-tools/ |
| 309 | + "⌨ Project source!" |
| 310 | + |
| 311 | +[badge__issues__ecdsa_tools]: |
| 312 | + https://img.shields.io/github/issues/web-dev-examples/ecdsa-tools.svg |
| 313 | + |
| 314 | +[badge__pull_requests__ecdsa_tools]: |
| 315 | + https://img.shields.io/github/issues-pr/web-dev-examples/ecdsa-tools.svg |
| 316 | + |
| 317 | +[badge__main__ecdsa_tools__source_code]: |
| 318 | + https://img.shields.io/github/repo-size/web-dev-examples/ecdsa-tools |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | +[sponsor__shields_io__liberapay]: |
| 326 | + https://img.shields.io/static/v1?logo=liberapay&label=Sponsor&message=web-dev-examples |
| 327 | + |
| 328 | +[sponsor__link__liberapay]: |
| 329 | + https://liberapay.com/web-dev-examples |
| 330 | + "💱 Sponsor developments and projects that web-dev-examples maintains via Liberapay" |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | +[badge__github_actions]: |
| 335 | + https://github.com/web-dev-examples/ecdsa-tools/actions/workflows/github-pages.yaml/badge.svg?branch=main |
| 336 | + |
| 337 | +[activity_log__github_actions]: |
| 338 | + https://github.com/web-dev-examples/ecdsa-tools/deployments/activity_log |
| 339 | + |
0 commit comments