Cryptocurrency protocols are like onions