#bls-signatures #signature #bls12-381 #bls

bls12_381-bls

Implementation of BLS signatures using the BLS12-381 curve

7 releases (4 breaking)

0.5.0 Feb 10, 2025
0.4.1 Dec 18, 2024
0.4.0 Aug 1, 2024
0.3.1 Jun 27, 2024
0.1.0 Jan 8, 2024

#1221 in Cryptography

Download history 124/week @ 2025-01-22 74/week @ 2025-01-29 227/week @ 2025-02-05 234/week @ 2025-02-12 126/week @ 2025-02-19 132/week @ 2025-02-26 89/week @ 2025-03-05 147/week @ 2025-03-12 253/week @ 2025-03-19 271/week @ 2025-03-26 160/week @ 2025-04-02 156/week @ 2025-04-09 248/week @ 2025-04-16 218/week @ 2025-04-23 191/week @ 2025-04-30 103/week @ 2025-05-07

794 downloads per month
Used in 17 crates (3 directly)

MPL-2.0 license

27KB
454 lines

Implementation of BLS signatures on the BLS12-381 curve. Reference paper: https://crypto.stanford.edu/~dabo/pubs/papers/BLSmultisig.html


Implementation of BLS signatures using the BLS12-381 curve.

This implementation currently only supports rogue-key attack resistant batching, and does not support distinct message verification.

Benchmarks

Machine specs

The benchmarks were ran on a 2020 13.3" MacBook Pro.

CPU:

$ lscpu
Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz

RAM:

16 GB 3733 MHz LPDDR4X

Results

test benches::bench_aggregate_pk    ... bench:   1,654,552 ns/iter (+/- 107,025)
test benches::bench_aggregate_sig   ... bench:      36,893 ns/iter (+/- 3,399)
test benches::bench_sign            ... bench:   1,480,169 ns/iter (+/- 106,151)
test benches::bench_sign_vulnerable ... bench:   1,024,052 ns/iter (+/- 111,395)
test benches::bench_verify          ... bench:   4,740,114 ns/iter (+/- 336,036)

Dependencies

~2.3–3.5MB
~83K SLoC