Future<Digest> digest(AssetId id) => inputId == id ? _reader.digest(id) : Future.error(InvalidInputException(id));