sweatpotato13 / lizard-ts

PQC Lizard implementation with typescript

Home Page:https://www.npmjs.com/package/lizard-ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to lizard-ts πŸ‘‹

Version Documentation Maintenance

Ethersdcan API library with typescript

🏠 Homepage

Install

npm i lizard-ts
yarn add lizard-ts

Run tests

yarn test

Usage

const plain = randomPlaintext();
const m_transpose = scalarMultiplyVector(128, plain);

const key = keyGeneration();

const enc = encrypt(m_transpose, key.pk);
const dec = decrypt(enc, key.sk);

const ms = plain.toString();
const ts = dec.toString();
if (ms === ts) {
    console.log("success");
} else {
    console.log("failed");
}

Author

πŸ‘€ CuteWisp sweatpotato13@gmail.com

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❀️ by readme-md-generator

About

PQC Lizard implementation with typescript

https://www.npmjs.com/package/lizard-ts

License:MIT License


Languages

Language:TypeScript 100.0%Language:JavaScript 0.0%