There are various approaches to do something similar and each has its advantages and disadvantages.
You can see the why’s and how’s in previous discussions (colored coins, sidechains, etc.) and a summary can be found here: What about sidechains, etc?