I have been working in fabric ledger for some time and created some basic chain code and RestApis. Now I want to do something with login and Registration of Users. My Queries are
- Do I implement Registration with RegisterUser like in Fabcar
- Do I create objects in chaincode of users with password and email and implement all logic and User Auth with chaincode.
- How do I use Enroll User in all this. Do I Enroll only one Admin and User to carry out the chaincode commands? and implement all the logic in chaincode?
Basically I want to implement something like Buy and Sell with Customers having there own Registration and Login. So What is the best approach ? Use Chaincode and store email and pass all in couchdb with chaincode