IntelligenceAlgorithmsposeidon
Poseidon
A hash function designed to be cheap inside zero-knowledge circuits, working on prime-field elements instead of bits; its security rests on resistance to algebraic attacks, an area of active cryptanalysis. It is used in circom, zero-knowledge rollups and the Merkle trees of many zero-knowledge applications. Grover's search would roughly halve its effective security, so instances with 256-bit outputs stay adequate.
In short
What a quantum computer changes.
- Quantum effect
- Weakened by Grover's search
- Family
- HashRests on hash function security (algebraic).
- What it means
- Grover's algorithm searches an unstructured space in roughly the square root of the usual number of steps. Against a symmetric key or a hash preimage, that roughly halves the effective security in bits: a 128-bit key gives about 64 bits of security against it. In practice the answer is size, not replacement. Keys and outputs of 256 bits stay adequate. Grover's search also needs a long, sequential run on a fault-tolerant machine and does not split well across many machines, so the effect is a smaller margin, not a break.
This describes the family, not any project that uses it.
19 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| @noble/curvesnpm | Pure TypeScript elliptic-curve library: ECDSA on secp256k1 and the NIST P curves, BIP340 Schnorr, Ed25519 and Ed448, X25519 and X448, ECDH, BLS signatures and pairings on BLS12-381 and BN254, FROST threshold signatures and the Poseidon hash. |
| @scure/starknetnpm | Starknet cryptography: ECDSA over the Stark curve, Pedersen and Poseidon hashes, and Starknet Keccak. |
| micro-starknetnpm | The former name of @scure/starknet: ECDSA over the Stark curve and Pedersen and Poseidon hashes. |
| starknetnpm | Starknet JavaScript SDK with Stark curve signing, Pedersen, Poseidon and Keccak hashing, and an Ethereum secp256k1 signer for accounts. |
| circomlibjsnpm | JavaScript counterparts of circomlib circuits: Baby Jubjub EdDSA, Poseidon, Pedersen and MiMC hashes, and sparse Merkle trees. |
| poseidon-litenpm | Dependency-free Poseidon hash over the BN254 scalar field. |
| @zk-kit/eddsa-poseidonnpm | EdDSA signatures on the Baby Jubjub curve with Poseidon hashing, compatible with Circom circuits. |
| @semaphore-protocol/identitynpm | Creates Semaphore identities: a Baby Jubjub EdDSA key pair and a Poseidon hash commitment of the public key. |
| @iden3/js-cryptonpm | iden3 primitives: Baby Jubjub EdDSA, Poseidon, SHA-256 and random bytes. |
| @aztec/bb.jsnpm | WebAssembly and native build of the Barretenberg prover with UltraHonk proving over BN254, Pedersen, Poseidon2 and BLAKE2s hashing, ECDSA on secp256k1 and P-256, Grumpkin Schnorr signatures and AES. |
| @mysten/suinpm | Sui TypeScript SDK with Ed25519, secp256k1, secp256r1 and ML-DSA-65 key pairs, passkeys, multisig, BLAKE2b addresses and zkLogin Poseidon hashing. |
| @aptos-labs/ts-sdknpm | Aptos TypeScript SDK with Ed25519, secp256k1 and secp256r1 WebAuthn accounts, keyless accounts verified with Groth16 proofs over BN254 and Poseidon, and AES-GCM payload encryption. |
| ark-crypto-primitivescrates.io | Arkworks building blocks for SNARK circuits: Pedersen and Bowe-Hopwood hashes, Pedersen and BLAKE2s commitments, Poseidon sponges, a SHA-256 CRH, Merkle trees, a BLAKE2s PRF and Schnorr signatures, with optional R1CS constraints. |
| halo2_gadgetscrates.io | Halo 2 circuit gadgets and chips for elliptic curve operations, the Poseidon hash and the Sinsemilla hash. |
| orchardcrates.io | The Zcash Orchard shielded transaction protocol: keys, note encryption, RedPallas signatures and the Action circuit proved with Halo 2. |
| light-poseidoncrates.io | The Poseidon hash with pre-generated BN254 parameters, compatible with the original SageMath reference and built on arkworks fields, from Light Protocol. |
| poseidon-rscrates.io | The Poseidon hash, compatible with the reference Sage implementation and the iden3 Go and circomlib implementations. |
| starknet-cryptocrates.io | Low-level Starknet cryptography: ECDSA signing, verification and key recovery on the STARK curve with RFC 6979 nonces, plus the Starknet Pedersen and Poseidon hashes. |
| lambdaworks-cryptocrates.io | Lambdaworks primitives for proof systems: KZG commitments, Merkle trees, Fiat-Shamir transcripts and hashes including Poseidon, Pedersen, Rescue Prime and Monolith. |
1 listed
Sources
- Grassi, Khovratovich, Rechberger, Roy, Schofnegger: Poseidon: A New Hash Function for Zero-Knowledge Proof Systems (IACR ePrint 2019/458)eprint.iacr.orgRetrieved 3 December 2026
Full record
- Identifier
- poseidon
- Kind
- hash
- Family
- Hash
- Rests on
- hash function security (algebraic)
- Quantum effect
- Weakened by Grover's search
Standards
No standard is listed for this algorithm.