Blockchain for Data Sharing at the Network Edge: Trade-Off Between Capability and Security