I have to implement such system described in https://ethereum.org/en/decentralized-identity/ Are there any resources and examples I can refer to ?
Instead of reinventing the wheel, I think it's best to use an existing service out there. Proof of Humanity does exactly that for you. It is the most established system out there yet and already well adapted. Here are the docs.