Sign the data with the pair.
data
pair
static Future<String?> sign(Object data, KeyPair pair) => toFuture(SeaJsImpl.sign(dartToJs(data), pair));