Encode an amount to bytes
Uint8List encodeToBytes(Currency amount) { return Int64.encodeToBytes(BigInt.parse(amount.toMolina())); }