Data authorization method for smart contracts