ssb-verify-signatures

Crates.iossb-verify-signatures
lib.rsssb-verify-signatures
version1.1.1
sourcesrc
created_at2020-10-16 08:10:07.578783
updated_at2021-08-18 10:19:36.000923
descriptionVerify signatures of scuttlebutt messages. In parallel.
homepage
repositoryhttps://github.com/sunrise-choir/ssb-verify-signatures
max_upload_size
id300434
size39,852
all (github:sunrise-choir:all)

documentation

https://sunrise-choir.github.io/ssb-verify-signatures/ssb_verify_signatures/index.html

README

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

Commit count: 42

cargo fmt