Coder Social home page Coder Social logo

Comments (3)

kobigurk-clabs avatar kobigurk-clabs commented on August 22, 2024
  • "just add together"
  • streaming batch verification
  • decompressed signatures
  • NIZKs? (probably not)

from celo-bls-snark-rs.

gtank avatar gtank commented on August 22, 2024

The batch verification code in #222 runs benchmarks with the following paramters:

fn batch_bls_comparison(c: &mut Criterion) {
let mut group = c.benchmark_group("bls");
group.sample_size(10);
// Generate aggregate signatures on 100-validators across 1000 blocks
const NUM_BLOCKS: usize = 300;
const NUM_VALIDATORS: usize = 20;

These are NOT real benchmark results, they came from my laptop while doing other things, but the general shape is clear. Aggregate screening is faster than batch verification but does not provide the same security guarantees. Batch verification remains much, much faster than individually verifying signatures.

"per epoch aggregate" adds the signatures together for one epoch
"all epoch aggregate" does a single aggregate signature against many keys and hashes
"per epoch batch" uses the new code with a random linear combination of signatures and keys against a fixed message
"per epoch individual" validates every signature individually

bls/per-epoch aggregate screening
                        time:   [976.61 ms 980.90 ms 985.14 ms]
bls/all epoch aggregate screening
                        time:   [269.52 ms 270.88 ms 272.22 ms]
bls/per-epoch batch verification
                        time:   [1.6660 s 1.6676 s 1.6695 s]
bls/per-epoch individual verification
                        time:   [19.397 s 19.417 s 19.442 s]

from celo-bls-snark-rs.

gtank avatar gtank commented on August 22, 2024

I'll close this issue now but we can post more benchmarks in the future, for further optimization work or other modes.

from celo-bls-snark-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.