Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transmute-industries/dilithium-key-pair
Dilithium is a digital signature scheme that is strongly secure under chosen message attacks based on the hardness of lattice problems over module lattices.
https://github.com/transmute-industries/dilithium-key-pair
cose jose post-quantum-cryptography
Last synced: about 2 months ago
JSON representation
Dilithium is a digital signature scheme that is strongly secure under chosen message attacks based on the hardness of lattice problems over module lattices.
- Host: GitHub
- URL: https://github.com/transmute-industries/dilithium-key-pair
- Owner: transmute-industries
- License: apache-2.0
- Created: 2022-04-03T13:41:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T16:27:51.000Z (almost 3 years ago)
- Last Synced: 2024-05-21T11:44:08.104Z (8 months ago)
- Topics: cose, jose, post-quantum-cryptography
- Language: C
- Homepage:
- Size: 879 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### @transmute/dilithium-key-pair
[![CI](https://github.com/transmute-industries/dilithium-key-pair/actions/workflows/ci.yml/badge.svg)](https://github.com/transmute-industries/dilithium-key-pair/actions/workflows/ci.yml) [![CD](https://github.com/transmute-industries/dilithium-key-pair/actions/workflows/cd.yml/badge.svg)](https://github.com/transmute-industries/dilithium-key-pair/actions/workflows/cd.yml)
> Dilithium is a digital signature scheme that is strongly secure under chosen message attacks based on the hardness of lattice problems over module lattices.
🚧 This is very experimental. Not for production use.
```sh
npm i @transmute/dilithium-key-pair@latest --save
``````ts
import { DilithiumKeyPair } from "@transmute/dilithium-key-pair";
const k = await DilithiumKeyPair.generate();
const signer = k.signer();
const verifier = k.verifier();
const message = Buffer.from("hello world");
const signature = await signer.sign({ data: message });
const verified = await verifier.verify({ data: message, signature });
```## About
Originally based on [mesur-io/dilithium](https://github.com/mesur-io/dilithium).
The purpose of this module is to maintain an independent tool chain for dilithium in js based on the original submission to NIST.
This module should be considered highly unstable until dilithium alg and kty are registered with IANA.
The C code here was copied from the repo above, see its LICENSE:
https://github.com/mesur-io/dilithium/blob/master/LICENSE