trust-graph/example
2021-12-06 23:27:06 +03:00
..
aqua Trust Graph: implement WASM built-in (#18) 2021-11-12 16:19:16 +03:00
index.ts Update READMEs, example, fix bug in aqua api (#32) 2021-12-06 20:17:45 +03:00
package-lock.json bump versions, update readme (#33) 2021-12-06 23:27:06 +03:00
package.json bump versions, update readme (#33) 2021-12-06 23:27:06 +03:00
README.md bump versions, update readme (#33) 2021-12-06 23:27:06 +03:00
tsconfig.json Trust Graph: implement WASM built-in (#18) 2021-11-12 16:19:16 +03:00

Run example locally

  1. Go to local-network
  2. Run docker compose up -d to start Fluence node
  3. Go back to ../example
  4. Run npm i
  5. Run npm run start

How to use

  1. Add the following to your dependencies

    • @fluencelabs/trust-graph
    • @fluencelabs/aqua
    • @fluencelabs/aqua-lib
    • @fluencelabs/fluence
    • @fluencelabs/fluence-network-environment
  2. Import dependencies

    import * as tg from "./generated/export";
    import { Fluence, KeyPair } from "@fluencelabs/fluence";
    import { krasnodar, Node } from "@fluencelabs/fluence-network-environment";
    
  3. Add root and issue self-signed root trust.

  4. For now, you can sign trusts/revocations only on js side with KeyPair.