Howdy folks, if any Haven users out there want to test the latest updates on master before I cut a release, this one is all about Web of Trust settings.
Haven’s built-in WoT model has been moved behind an interface and can now be easily replaced by alternative algorithms. For example, I’m using my own ownertrust model. It can also be adapted to use external sources, such as calling one of the fancy WoT tools out there.
Haven default WoT mofel can now
1. Be periodically refreshed at configurable predefined intervals (default 24h), thanks to
@Sergey B. (idea by
@Girino Vey!).
2. Allow you to choose your WoT "depth" for the Inbox and Chat relays
0 - Public relay, no write restrictions (not recommended)
1 - Only the relay owner can write to their relay (for the extra antisocial folk or when your relay is under attack and you just don’t want to deal with it)
2 - Pubkeys directly followed by the relay owner can write to Inbox and Chat
3 - Friends of friends with a configurable minimum number of common followers (Haven’s old default behaviour)
I also took the time to fix several bugs and race conditions in the default WoT algorithm that caused Kind 3 events to be counted multiple times, inflating the WoT numbers. As a consequence, Depth 3 should now be stricter, especially for folks with small follow lists and high values for `WOT_MINIMUM_FOLLOWERS`.
For further details, have a look at
📃.md
As with all new code, there be dragons. Feel free to report bugs on Haven’s issue tracker.
#haven #wot #relay