String bigIntToBase64(BigInt input) { final bytes = bigIntToBytes(input); return base64.encode(bytes); }