This project provides a small abstraction over the original WebCryptoAPI for ECDSA signatures.
- This uses the WebCryptoAPI, which is natively available in
Node.Js as well as Browsers.
Note: If you want to use this in browser you can replace
crypto.subtle
withwindow.crypto.subtle
and it should work the same. - The signatures, keys, etc are encoded in base64 so they can be easily used in APIs.
- Clone the repo:
git clone https://github.com/codeTIT4N/ECDSA-WebCryptoAPI-abstraction
- Install node modules:
npm i
- Use the
packages
provided insidesrc
- Refer to example.ts
npm run example
npm run build
npm run test