nick / identity

ERC 725+735: Identity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERC 725+735: Identity

Please see OriginProtocol/identity-playground for a more recent implementation and UI

Installation

git clone https://github.com/nick/identity.git
cd identity
npm install
npm test

Tests

Contracts

  • KeyHolder.sol - Implementation of ERC 725
  • ClaimHolder.sol - Implementation of ERC 735
  • ClaimVerifier.sol - Demonstrates how to verify a claim

Notes

  • Uses mocha for tests. Test files and contracts are watched for changes.

Changes to the spec

  • Uses function getKey(bytes32 _key) instead of function getKey(bytes32 _key, uint256 _purpose)
  • Claim uses bytes32 data instead of bytes data to make implementation easier :-)

Credits

Thanks to @JosefJ for his original implementation

About

ERC 725+735: Identity


Languages

Language:JavaScript 100.0%