This is a Solidiy code for a privacy-preserving Smart-contract. For simplicity we assume that investors trade one type of share.
1- Deploy the smart-contract to one of the Ethereum networks, or simply use Ganache.
2- Add anonymous investor accounts (CSD role) by calling addAnonymousNin () function
3- Simulate a trade by calling buyShares and sellShares function.
Or you can simply call execute() function: contains an already embeded example.
This is part of a research work made at Hamed Bin Khalifa University (HBKU)
@uthors:
Hamed Al-Shaibani
Noureddine Lasla
Mohamed Abdallah