Unlocking the Chain: A Definitive Guide to Blockchain Design