How to make /trust datapack

I want to make a /trust datapack, my main problem is how to stop me from damaging 1 player and not another, to get whos trusted i have /execute if data entity @s {UUID:[I;]} right now, which i can probably do something to if i get the damage thing
Continue to help post