Hi, I am considering how to implement whitelisting meaning restricting transfer only between KYCed users.
・Adding the addresses that passed KYC into a public address by DataTransaction
・Issuing a Smart Asset and attach a script with the restriction. This script will refer this list of addresses in the account and return True if the addresses of sender and receiver are in it.
This is the implementation I was thinking of.
However, I can’t come up with the solution to search an address from the list.
Is there any preset function that supports this objective or any other way to achieve this?
Very appreciate if anyone can help me.