#verify #publish #hash #bamboo #messages #signed #chains

no-std bamboo-rs-core-ed25519-yasmf

Publish and verify signed hash chains of bamboo messages

2 releases

0.1.1 Apr 1, 2022
0.1.0 Nov 29, 2021

#998 in Cryptography

Download history 21/week @ 2024-07-22 29/week @ 2024-07-29 25/week @ 2024-08-05 16/week @ 2024-08-12 14/week @ 2024-08-19 21/week @ 2024-08-26 14/week @ 2024-09-02 6/week @ 2024-09-09 8/week @ 2024-09-16 30/week @ 2024-09-23 13/week @ 2024-09-30 5/week @ 2024-10-07 14/week @ 2024-10-14 10/week @ 2024-10-21 11/week @ 2024-10-28 22/week @ 2024-11-04

57 downloads per month
Used in 3 crates (2 directly)

AGPL-3.0

47KB
928 lines

bamboo-rs

Rust implementation of bamboo.

Docs

Rust docs

About

bamboo-rs aspires to be portable, fast and correct.

Portable

bamboo-rs-core supports compilation with no_std and uses crypto libraries that support this too. Anywhere rust can go, bamboo can go too, including microcontrollers, mobile and in the browser via web assembly.

Bamboo releases target 29 different architectures. Releases of the bamboo_core library expose a c api so you can build bindings to many other languages.

Fast

The most likely bottleneck for applications is verification. Experience with scuttlebutt shows that once an application has to deal with a few years of data from a social network, onboarding a new user is painfully slow, and part of that slowness is due to verification.

bamboo-rs exports a batch verification function that uses rayon and signature batch verification that uses SIMD instructions for ~3-4 * speed up.

Correct

There are Test vectors so that you can test your implementation against this one. As people build their own implementations of bamboo we can work together to check each other's work.

CLI

Check out bamboo-rs-cli, a command line tool for working with bamboo entries. Download it for your architecture from the releases

Dependencies

~4–5.5MB
~126K SLoC