mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-04 15:20:19 +00:00
.. | ||
aqua | ||
index.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Run example locally
- Go to
local-network
- Run
docker compose up -d
to start Fluence node - Go back to
../example
- Run
npm i
- Run
npm run start
How to use
-
Add the following to your dependencies
@fluencelabs/trust-graph
@fluencelabs/aqua
@fluencelabs/aqua-lib
@fluencelabs/fluence
@fluencelabs/fluence-network-environment
-
Import dependencies
import * as tg from "./generated/export"; import { Fluence, KeyPair } from "@fluencelabs/fluence"; import { krasnodar, Node } from "@fluencelabs/fluence-network-environment";
-
Add root and issue self-signed root trust.
-
For now, you can sign trusts/revocations only on js side with KeyPair.