This repository is an implementation of Root-of-Trust proposal of LACChain ID Stack.
Smart contracts helps to build a Root of Trust structure, by deploying a Public Key Directory (PKD) and a subset of Trusted List (TL) recursively to establish a hierarchy of entities.
The PKD extends its capabilities by accepting DIDs instead of just X.509 certificates for registered entities, allowing multiple public keys and giving each entity sovereignty to control and revoke them, without the need to alter the public directory.
On the other hand, the TL allow to maintain in the same way a list of entities identified by their DID, accepting multiple public keys, but also generating a TL hierarchy recursively.
First rename truffle-config.default
to truffle-config.js
and edit to desired network configuration.
Make sure you don't have another version of truffle installed globally, then run:
$ npm install
$ truffle test
- NodeJS >= 12.4
- Truffle @ 5.1.67
- Install OpenZepellin CLI
- Install OpenZepellin Contracts (version 3.0.0)
- Rename
truffle-config.default
totruffle-config.js
and edit to desired network configuration. - Execute:
$ oz init
$ oz deploy