Skip to content

LACChain Public Key Directory and Trusted Lists On-Chain

License

Notifications You must be signed in to change notification settings

lacchain/lacchain-pkd

Repository files navigation

LACChain On-Chain Public Key Directory

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.

PublicKeyDirectory

Testing

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

Pre requisites

  • NodeJS >= 12.4
  • Truffle @ 5.1.67

Deployment

  1. Install OpenZepellin CLI
  2. Install OpenZepellin Contracts (version 3.0.0)
  3. Rename truffle-config.default to truffle-config.js and edit to desired network configuration.
  4. Execute:
$ oz init
$ oz deploy

About

LACChain Public Key Directory and Trusted Lists On-Chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published