Prepare verified laboratory 7 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 20afc2c790
commit eb1b5c7b84
677 changed files with 208256 additions and 64 deletions
+18
View File
@@ -0,0 +1,18 @@
export function nativeSearchWindow(
startMilliseconds: number,
endMilliseconds: number,
) {
const start_time = Math.trunc(startMilliseconds * 1000),
end_time = Math.trunc(endMilliseconds * 1000);
if (
!Number.isFinite(startMilliseconds) ||
!Number.isFinite(endMilliseconds) ||
!Number.isSafeInteger(start_time) ||
!Number.isSafeInteger(end_time) ||
start_time <= 0 ||
end_time <= start_time ||
end_time - start_time > 3600000000
)
throw new Error("INVALID_OPENOBSERVE_SEARCH_WINDOW");
return { start_time, end_time };
}