Expand description
wotb is a crate making “Web of Trust” computations for
the Duniter project.
It defines a trait representing a Web of Trust and allow to do calculations on it.
It also contains an “legacy” implementation translated from the original C++ code.
Web of Trust tests are translated from duniter/wotb Javascript test.
Re-exports§
pub use legacy::LegacyWebOfTrust;
Modules§
- legacy
- Provide a legacy implementation of
WebOfTruststorage and calculations. Its mostly translated directly from the original C++ code. - rusty
- Experimental implementation of the Web of Trust in a more “rusty” style.
Structs§
- NodeId
- Wrapper for a node id.
- WotDistance
- Results of
WebOfTrust::compute_distance. - WotDistance
Parameters - Paramters for
WoTdistance calculations
Enums§
- HasLink
Result - Results of a certification test.
- NewLink
Result - Results of a certification, with the current certification count of the destination as parameter.
- RemLink
Result - Results of a certification removal, with the current certification count of the destination as parameter.
- WotParse
Error - Results of
WebOfTrustparsing from binary file. - WotWrite
Error - Results of
WebOfTrustwriting to binary file.
Traits§
- WebOf
Trust - Trait for a Web Of Trust.
Allow to provide other implementations of the
WoTlogic instead of the legacy C++ translated one.