Pure JS/TS library with Ed448 for EdDSA
npm install ed448-js[npm-url]: https://www.npmjs.com/package/ed448-js
[npm-img]: https://img.shields.io/npm/v/ed448-js
[coveralls-url]: https://coveralls.io/github/Iskander508/Ed448-js?branch=master
[coveralls-img]: https://coveralls.io/repos/Iskander508/Ed448-js/badge.svg?branch=master&service=github
[downloads-url]: https://www.npmjs.com/package/ed448-js
[downloads-img]: https://img.shields.io/npm/dm/ed448-js.svg
Pure JavaScript/TypeScript implementation of the Ed448 elliptic curve (RFC 8032) for EdDSA signature. Uses the jsbn library for big integer operations. Uses jssha for SHAKE256 hash calculation.
Using npm:
npm install ed448-js
or yarn:
yarn add ed448-js
Then include it in your code:
``ts`
import createEd448 from "ed448-js";
`ts`
const Ed448 = createEd448();
Calculate public key from a provided private key
`ts`
const privateKey = crypto.randomFillSync(new Uint8Array(57));
const publicKey = Ed448.getPublicKey(privateKey);
The private key can be any random generated byte-array of length 57
Calculate the EdDSA signature.
The result is represented as plain number array (length: 114). It can be converted using Buffer.from, or Uint8Array.from`.
Verify the EdDSA signature.