WASM version of Rust falcon implementation for Node and Browser
npm install rust-falconThis library provides fully sync wasm version of Falcon signature functions. Thanks to this Github repo
##### Generating random 48 bytes array:
``typescript`
const randomSeed = crypto.getRandomValues(new Uint8Array(48));
##### Generating keypair:
`typescript
import { falconKeypair } from "rust-falcon";
const keypair = falconKeypair(randomSeed);
`
##### Signing message:
`typescript
import { sign } from "rust-falcon";
const keypair = falconKeypair(randomSeed);
const message = new TextEncoder().encode("message");
const signature = sign(message, keypair.secret, anotherRandomSeed).sign;
`
##### Verifying message:
`typescript
import { verify } from "rust-falcon";
const result = verify(signature, message, keypair.public); // True
``