Application of dynamic access control on blockchain