trustgraph / trustgraph-holochain

Apache License 2.0
24 stars 3 forks source link

TrustGraph Refactor #43

Closed dauphin3 closed 1 year ago

dauphin3 commented 2 years ago

fixes #25 and #28

TrustGraph Zome creates rollup of Trust Atoms 2 levels deep (self + other agents whom you placed TA)

first builds agent list by identifying which targets have done a rollup (indicating they are an agent) then rollup_silver returns BTreemap structure... Key: Target (AnyLinkableHash) V: BTreeMap<Agent, RollupData> where RollupData contains content value and agent's rating then rollup_gold calculates an amalgamation of the targets those agents have rated (latest ie most recent update) thus "rolling up" a net value per each, returning a Vec

algorithm is now slightly weighted higher by the curve x^phi

harlantwood commented 1 year ago

Stale; closing; reopen if inspired.