Optimal policy computing for blockchain based smart contracts via federated learning · Study