There are a lots of tutorials in Cardano CLI that uses --testnet-magic 3
or --testnet-magic 4
during reading values in address, minting native tokens etc. But none of them explain in detail about what actually the magic number is and how do we determine what magic number is to use?
For reference, there is an official doc that uses magic number 42 but I got lost trying to understand it.