How Sidechains Connect to Main Blockchain: The Two-Way Peg Explained