Realtime Collaborative Editor Algorithm based on Nakamoto Blockchains