HOWTO: add indirect trust aggregation and not distrusting ancestors
1 files changed, 42 insertions(+), 2 deletions(-)

M HOWTO.org
M HOWTO.org +42 -2
@@ 145,9 145,10 @@ GET http://127.0.0.1:4280/score/ownkey/0
 #+RESULTS:
 : 50
 
+*Note: The keys are not guaranteed to be stable, because pruning the trust data can change them. If you get a 500 when requesting the score, you may have to update the keys.*
+
 OTHERID to BADID: First get the keys:
 
-
 #+begin_src http :pretty :exports both
 GET http://127.0.0.1:4280/key/OTHERID
 #+end_src

          
@@ 164,7 165,6 @@ GET http://127.0.0.1:4280/key/BADID
 
 Then request the score for these keys:
 
-
 #+begin_src http :pretty :exports both
 GET http://127.0.0.1:4280/score/ownkey/0001/otherkey/0004
 #+end_src

          
@@ 221,6 221,46 @@ GET http://127.0.0.1:4280/score/ownkey/0
 #+RESULTS:
 : 20
 
+Increasing intermediate trust can make the score of an ID someone
+distrusts net-positive:
+
+#+begin_src http :pretty :exports both
+PUT http://127.0.0.1:4280/trust/SOMEID
+Content-type: application/x-www-form-urlencoded
+
+100=OTHERID&30=ONEMOREID
+#+end_src
+
+#+RESULTS:
+
+=application/x-www-form-urlencoded= format:
+
+#+begin_src http :pretty :exports both
+PUT http://127.0.0.1:4280/trust/ONEMOREID
+Content-type: application/x-www-form-urlencoded
+
+10=BADID
+#+end_src
+
+#+begin_src http :pretty :exports both
+GET http://127.0.0.1:4280/score/ownkey/0000/otherkey/0004
+#+end_src
+
+#+RESULTS:
+
+But it cannot impact the score of IDs that are closer in the
+trust-graph (cannot cause an ancestor to become distrusted).
+
+#+begin_src http :pretty :exports both
+GET http://127.0.0.1:4280/score/ownkey/0000/otherkey/0002
+#+end_src
+
+#+RESULTS:
+: 20
+
+
+
+
 You receive either an empty result, when there is no known connection,
 or an integer-value.