Converts an BigInt to a Uint8List
static Uint8List bigIntToBuffer(BigInt i) { return Uint8List.fromList( hex.decode(padToEven(AppHelpers.bigIntToHex(i).substring(2)))); }