Skip to content
Public claim registry for Selfkey DIDs
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
contracts
migrations
test
.eslintignore
.eslintrc.json
.gitignore
.solcover.js
.solhint.json
CONTRIBUTING.md
README.md
hdWallet.js
package-lock.json
package.json
truffle.js
web3Engine.js

README.md

selfkey-claim-registry

Public claim registry for Selfkey DIDs

  • developCircleCI codecov
  • masterCircleCI codecov

Overview

The ClaimRegistry contract provides the following functionality.

  1. Addresses are able to set any (32 byte) key-value associated with an arbitrary address which is regarded as the "claim subject".

  2. Only the original issuer of a given claim is able to remove it.

  3. Given a "key", anyone can get a specific claim made by an issuer about a subject via the getClaim method, for verification purposes.

Development

All smart contracts are being implemented in Solidity 0.4.23.

Prerequisites

  • NodeJS, version 9.5+ (I use nvm to manage Node versions — brew install nvm.)
  • truffle, which is a comprehensive framework for Ethereum development. npm install -g truffle — this should install Truffle v4+. Check that with truffle version.

Initialization

npm install

Testing

Standalone

npm test

or with code coverage

npm run test:cov

From within Truffle

Run the truffle development environment

truffle develop

then from the prompt you can run

compile
migrate
test

as well as other Truffle commands. See truffleframework.com for more.

Linting

We provide the following linting options

  • npm run lint:sol — to lint the Solidity files, and
  • npm run lint:js — to lint the Javascript.

Contributing

Please see the contributing notes.

You can’t perform that action at this time.