How a Decentralized Cryptocurrency Exchange Works (dEX)