Crate duniter_wotb

Crate duniter_wotb 

Source
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 WebOfTrust storage 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.
WotDistanceParameters
Paramters for WoT distance calculations

Enums§

HasLinkResult
Results of a certification test.
NewLinkResult
Results of a certification, with the current certification count of the destination as parameter.
RemLinkResult
Results of a certification removal, with the current certification count of the destination as parameter.
WotParseError
Results of WebOfTrust parsing from binary file.
WotWriteError
Results of WebOfTrust writing to binary file.

Traits§

WebOfTrust
Trait for a Web Of Trust. Allow to provide other implementations of the WoT logic instead of the legacy C++ translated one.