@zooko Mike T from Verus Coin (a ZEC fork) has already done this for sapilng and sprout. He has responded on your twitter here: https://twitter.com/miketoutonghi/status/1081812135729016832?s=21
plenty of code available in the repo to help you achieve your goals. Thanks for sapling from the komodo community!!