#ssb #verify #signatures #scuttlebutt #parallel

ssb-verify-signatures

Verify signatures of scuttlebutt messages. In parallel.

3 stable releases

1.1.1 Aug 18, 2021
1.1.0 Jun 25, 2021
1.0.0 Oct 16, 2020
Download history 5/week @ 2021-07-06 20/week @ 2021-07-13 10/week @ 2021-07-20 8/week @ 2021-07-27 10/week @ 2021-08-03 10/week @ 2021-08-10 44/week @ 2021-08-17 7/week @ 2021-08-24 3/week @ 2021-08-31 6/week @ 2021-09-07 11/week @ 2021-09-14 4/week @ 2021-09-21 4/week @ 2021-09-28 16/week @ 2021-10-05 37/week @ 2021-10-12 5/week @ 2021-10-19

56 downloads per month

LGPL-3.0

27KB
410 lines

ssb-verify-signatures

Build Status Documentation badge

Verify Secure Scuttlebutt message signatures (in parallel).

How is this different to ssb-legacy-msg?

It's built on top of ssb-legacy-msg and ssb-legacy-msg-data but exposes a hopefully easier api, and most importantly it lets you batch process a collection of messages.

Batch processing is good for two reasons:

  • it means we can utilise multiple cores using rayon
  • it means we can use the ed25519_dalek verify_batch function that takes advantage of processor SIMD instructions.

Benchmarks

Benchmarking on a 2016 2 core i5 shows that batch processing with par_verify_messages is ~3.6 times faster than using verify_message

Benchmarking on Android on a One Plus 5T (8 core arm64) shows that batch processing with par_verify_messages is ~9.9 times faster than using verify_message!

Benchmarks can be run with cargo criterion.

License

LGPL-3.0

Dependencies

~9MB
~186K SLoC

a