Apex › Cryptography

A whole set in one number (RSA accumulator)

Where a Merkle tree’s membership proofs grow as log(n), an RSA accumulator commits to a set with a single number and proves membership with a single number — constant size. Map each element to a prime; the accumulator is acc = g^(∏ primes) mod N. A witness for x is g^(∏ of the others); anyone checks w^x ≡ acc. Faking membership needs an x-th root of acc, hard under Strong RSA. Verified in node: witnesses verify for every member, adds update correctly (acc′ = acc^x), and non-members never verify. Powers stateless blockchains, revocation, and anonymous credentials. Prove membership and add elements.

More in Cryptography