← Playground

Pedersen Commitment

A Pedersen commitment lets you commit to a value v with a random blinding r such that:

commit(v, r) = gv · hr mod p
Result

Try it

What's happening

The button calls a Rust function compiled to WebAssembly. The same commit function is used by the rollup server to lock account state. Read Ex1 for the full math and security argument.