Module duniter_wotb::data [] [src]

Provide data structures to manage web of trusts. LegacyWebOfTrust is almost a translation of the legacy C++ coden while RustyWebOfTrust is a brand new implementation with a more "rusty" style.

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.

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.

Traits

WebOfTrust

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