A Companion Guide to “First impressions with ERC 725 and ERC 735 - identity and claims” (Part 3)

5. Detail Flow of the Demo: walking through main.js (cont.)

Step 5: Investor adds Fractal ID’s signed KYC claim to their identity contract

Image for post
Image for post
Image for post
Image for post
bytes32 claimId = keccak256(_issuer, _claimType)
Image for post
Image for post
Image for post
Image for post
Step 5: Investor adds the claim issued by Fracter ID to its own Identity Contract.

Step 6: Very Good deploys their token and crowdsale contracts

Image for post
Image for post
Image for post
Image for post
Contract inheritance
Image for post
Image for post
> eth.call({to: <target contract address>, data: <function selector + arguments if needed>})
Image for post
Image for post
Step 6: Very Good Company deploys Token and Crowdsale Contract

Step 7: Investor participates in Very Good’s ICO by making a transfer through their identity contract to Very Good’s crowdsale contract

Image for post
Image for post
Image for post
Image for post
Step 7: Investor buys Token through Investor’s Identity (ClaimHolder) contract

Step 8: Very Good’s crowdsale contract confirms that the Investor’s identity contract contains a KYC claim by Fractal ID before accepting the investment

Image for post
Image for post
It is taken from VeryGoodCrowdsale.sol
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Step 8: After KYC validity check tokens are issued to Investor

Closing

Written by

Happy to share what I learn on blockchain. Visit http://www.ledgertech.biz/kcarticles.html for my works. or reach me on https://www.linkedin.com/in/ktam1/.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store