
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
falcon-1024
Advanced tools
TypeScript/WebAssembly bindings for deterministic Falcon-1024 post-quantum signatures, backed by the C implementation of Falcon-1024 by David Lazar and Chris Peikert. This is the same implementation used by the go-algorand Algorand client.
# npm
npm install falcon-1024
# pnpm
pnpm add falcon-1024
# Bun
bun add falcon-1024
The package ships precompiled WebAssembly (falcon_wasm.wasm) and an ES module build targeting modern browsers / runtimes with WebAssembly support.
import {
generateKey,
signCompressed,
verifyCompressed,
} from "falcon-1024";
const encoder = new TextEncoder();
const message = encoder.encode("hello, post-quantum world");
// 1. Generate a deterministic Falcon-1024 keypair
const { publicKey, privateKey } = generateKey(); // uses crypto.getRandomValues by default
// 2. Sign (compressed format)
const signature = signCompressed(privateKey, message);
// 3. Verify
const isValid = verifyCompressed(publicKey, signature, message);
console.log("Signature valid?", isValid); // true
If you pass a seed, key generation is deterministic:
import { generateKey } from "falcon-1024";
const seed = crypto.getRandomValues(new Uint8Array(48));
const { publicKey, privateKey } = generateKey(seed);
The same 48-byte seed will always produce the same keypair.
All exports come from the top-level module:
import {
FALCON_DET1024_PUBKEY_SIZE,
FALCON_DET1024_PRIVKEY_SIZE,
FALCON_DET1024_SIG_COMPRESSED_MAXSIZE,
generateKey,
signCompressed,
verifyCompressed,
KeygenError,
SigningError,
VerificationError,
} from "falcon-1024";
FALCON_DET1024_PUBKEY_SIZE: number
Byte length of a Falcon-1024 public key.
FALCON_DET1024_PRIVKEY_SIZE: number
Byte length of a Falcon-1024 private key.
FALCON_DET1024_SIG_COMPRESSED_MAXSIZE: number
Maximum byte length of a compressed Falcon-1024 signature.
generateKey(seed?: Uint8Array): { publicKey: Uint8Array; privateKey: Uint8Array }
Generates a Falcon-1024 keypair.
seed is provided, the keypair is derived deterministically from it.crypto.getRandomValues.signCompressed(privateKey: Uint8Array, message: Uint8Array): Uint8Array
Creates a compressed Falcon-1024 signature of message using privateKey.
SigningError if the key length is invalid or signing fails.verifyCompressed(publicKey: Uint8Array, signature: Uint8Array, message: Uint8Array): boolean
Verifies a compressed signature for message under publicKey.
true if the signature is valid.VerificationError if the key/signature is malformed or verification fails.All error classes extend Error and wrap underlying Falcon error codes:
KeygenError – thrown by generateKey on key generation failures.SigningError – thrown by signCompressed on signing failures.VerificationError – thrown by verifyCompressed on verification failures."type": "module" in package.json).crypto.getRandomValues implementation (browser Web Crypto, Bun, or Nodes crypto.webcrypto wired to globalThis.crypto).When bundling, ensure that falcon_wasm.wasm (shipped in the published dist/ folder) is served alongside the compiled JS so the runtime can load it.
This repository uses Bun for development.
Install dependencies:
bun install
Build the library (ESM + .d.ts + wasm copy):
bun run build
Run browser tests (Playwright):
bun run test:browser
FAQs
Unknown package
We found that falcon-1024 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.