48 releases (30 breaking)

0.38.0 Apr 9, 2024
0.37.0 Mar 18, 2024
0.36.0 Feb 26, 2024
0.33.0 Dec 13, 2023
0.8.0-alpha.5 Mar 24, 2020

#1067 in Magic Beans

Download history 421/week @ 2024-01-02 945/week @ 2024-01-09 871/week @ 2024-01-16 686/week @ 2024-01-23 523/week @ 2024-01-30 1085/week @ 2024-02-06 1219/week @ 2024-02-13 1162/week @ 2024-02-20 1294/week @ 2024-02-27 1480/week @ 2024-03-05 1096/week @ 2024-03-12 1662/week @ 2024-03-19 1386/week @ 2024-03-26 1832/week @ 2024-04-02 1204/week @ 2024-04-09 1031/week @ 2024-04-16

5,674 downloads per month
Used in 8 crates (5 directly)

GPL-3.0-or-later…

1MB
23K SLoC

Aura (Authority-round) consensus in Substrate.

Aura works by having a list of authorities A who are expected to roughly agree on the current time. Time is divided up into discrete slots of t seconds each. For each slot s, the author of that slot is A[s % |A|].

The author is allowed to issue one block but not more during that slot, and it will be built upon the longest valid chain that has been seen.

Blocks from future steps will be either deferred or rejected depending on how far in the future they are.

NOTE: Aura itself is designed to be generic over the crypto used.

License: GPL-3.0-or-later WITH Classpath-exception-2.0


lib.rs:

Aura (Authority-round) consensus in substrate.

Aura works by having a list of authorities A who are expected to roughly agree on the current time. Time is divided up into discrete slots of t seconds each. For each slot s, the author of that slot is A[s % |A|].

The author is allowed to issue one block but not more during that slot, and it will be built upon the longest valid chain that has been seen.

Blocks from future steps will be either deferred or rejected depending on how far in the future they are.

NOTE: Aura itself is designed to be generic over the crypto used.

Dependencies

~50–89MB
~1.5M SLoC