wot

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Computed bool

Computed is true after the first successful WoT computation.

Functions

func StartBackgroundComputation

func StartBackgroundComputation()

StartBackgroundComputation begins a periodic background loop that recomputes the aggregated WoT every 48 hours. It sleeps 2 minutes before the first computation to let the system stabilise.

Types

type XorFilter

type XorFilter struct {
	Items int
	xorfilter.Xor8
}
var Current XorFilter

Current is the latest computed aggregated web-of-trust filter. It is safe to read at any time, even before it has been computed (it will just return an empty filter that contains nothing).

func ComputeAggregated

func ComputeAggregated(ctx context.Context) (XorFilter, error)

ComputeAggregated computes the aggregated web-of-trust filter for all pyramid members: it fetches the follow lists of all members, then the follow lists of all those followed pubkeys, and builds a xor filter from the full set.

func (XorFilter) Contains

func (f XorFilter) Contains(pubkey nostr.PubKey) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL