Sitemap
Press enter or click to view image in full size

Member-only story

Accumulators With WASM: Crypto Pairing in the Browser

4 min readMay 27, 2025

--

We give away too much of our private information. In most cases, when we log into a system, we have to reveal our password to the system. If someone is listening to the communications, they could reveal our password. So why can’t we just prove that we know something, without revealing it? Well, Zero-Knowledge Proofs (ZKPs) aim to do that. In this case, we will look at an accumulator method using Bilinear Maps, as first proposed by Lan Nyugen [1] [here]:

Press enter or click to view image in full size

An accumulator allows Bob to add values onto a fixed-length digest and to provide proof of the values added, without revealing them within the accumulated value. In this case, we will add a message onto an accumulator for a given message, and then we will remove it to show that the accumulator goes back to its original state. In this, where Bob can prove that he knows something without actually revealing it to Alice, and where Bob can provide proof to it. In this case, we will use the crypto-wasm library, and add a message onto an accumulator to prove that we know the message without actually revealing it. After we generate the proof, we will remove the message from the accumulator and prove that it has gone back to its original value…

--

--

Prof Bill Buchanan OBE FRSE
Prof Bill Buchanan OBE FRSE

Written by Prof Bill Buchanan OBE FRSE

Professor of Cryptography. Serial innovator. Believer in fairness, justice & freedom. Based in Edinburgh. Old World Breaker. New World Creator. Building trust.