Brazil could implement crypto regulations before the end of 2022 as the country's senate approves a bill that legalizes cryptos.