Go to file
2022-01-28 18:18:22 +03:00
.circleci libp2p-core 0.31.0 (from crates.io) (#37) 2022-01-28 16:15:20 +03:00
.github CI: toolchain nightly-2022-01-16 2022-01-28 17:52:35 +03:00
admin Update READMEs, example, fix bug in aqua api (#32) 2021-12-06 20:17:45 +03:00
aqua Fix revocations logic (#34) 2021-12-13 19:40:16 +03:00
builtin-package Trust Graph: implement WASM built-in (#18) 2021-11-12 16:19:16 +03:00
example Fix revocations logic (#34) 2021-12-13 19:40:16 +03:00
keypair fluence-keypair 0.6.0 2022-01-28 18:18:22 +03:00
local-network Update READMEs, example, fix bug in aqua api (#32) 2021-12-06 20:17:45 +03:00
service fluence-keypair 0.6.0 2022-01-28 18:18:22 +03:00
src Fix revocations logic (#34) 2021-12-13 19:40:16 +03:00
.gitignore Remove serde version lock (#15) 2022-01-13 19:37:23 +03:00
Cargo.lock fluence-keypair 0.6.0 2022-01-28 18:18:22 +03:00
Cargo.toml fluence-keypair 0.6.0 2022-01-28 18:18:22 +03:00
README.md Update READMEs, example, fix bug in aqua api (#32) 2021-12-06 20:17:45 +03:00
rust-toolchain.toml libp2p-core 0.31.0 (from crates.io) (#37) 2022-01-28 16:15:20 +03:00

Trust Graph

Trust Graph is network-wide peer relationship layer. It's designed to be used to prioritize resources and control permissions in open networks. Being a decentralized graph of relationships, basically a Web of Trust, Trust Graph is distributed among all network peers.

Specifically, Trust Graph is used is used to prioritize connections from known peers to counteract Sybil attacks while still keeping network open by reserving resources for unknown peers.

At the same time, Trust Graph can be used at the application level in various ways such as prioritization of service execution on authorized peers or to define an interconnected subnetwork among peers of a single protocol.

How to Use it in TypeScript

See example:

API

Low-level API is defined in the trust-graph-api.aqua module.

Directory structure

  • src is the main project with all trust graph logic

  • keypair directory is an abstracted cryptographical layer (key pairs, public keys, signatures, etc.)

  • service is a package that provides marine API and could be compiled to a Wasm file. It is uses SQLite as storage.

  • example is a js script that shows how to issue, sign trusts/revocations, export certificates and distinguish Fluence nodes

  • builtin-package contains blueprint, configs and scripts for generation builtin package locally or via CI

  • admin is a js script used to generate builtin-package/on_start.json which contains certificates for Fluence Labs nodes

Learn Aqua