trust-graph/example
Alexey Proshutinskiy dce846d1c7 pr fix
2022-01-11 17:01:15 +03:00
..
aqua add hl-api, add example with trusted computation 2021-12-30 03:52:16 +03:00
index.ts add hl-api, add example with trusted computation 2021-12-30 03:52:16 +03:00
package-lock.json pr fix 2022-01-11 17:01:15 +03:00
package.json pr fix 2022-01-11 17:01:15 +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.