@gmitch215/folio 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -460
- package/dist/boot.d.ts +1 -0
- package/dist/boot.js +1 -0
- package/dist/browser/index.d.ts +73 -0
- package/dist/browser/index.js +277 -0
- package/dist/browser.d.ts +1 -68
- package/dist/browser.js +1 -274
- package/dist/continuation.d.ts +1 -0
- package/dist/continuation.js +1 -0
- package/dist/{compiler.d.ts → execution/compiler.d.ts} +1 -1
- package/dist/{compiler.js → execution/compiler.js} +5 -12
- package/dist/{coordinator.d.ts → execution/coordinator.d.ts} +1 -1
- package/dist/{coordinator.js → execution/coordinator.js} +55 -8
- package/dist/{extract.d.ts → execution/extract.d.ts} +22 -13
- package/dist/{extract.js → execution/extract.js} +137 -10
- package/dist/execution/fold.d.ts +44 -0
- package/dist/execution/fold.js +105 -0
- package/dist/{guards.d.ts → execution/guards.d.ts} +2 -1
- package/dist/execution/runs.d.ts +44 -0
- package/dist/execution/runs.js +182 -0
- package/dist/{transaction.d.ts → execution/transaction.d.ts} +10 -0
- package/dist/execution/types.d.ts +221 -0
- package/dist/folds/affine-state.d.ts +142 -0
- package/dist/folds/affine-state.js +737 -0
- package/dist/folds/affine.d.ts +148 -0
- package/dist/folds/affine.js +562 -0
- package/dist/folds/boundaries.d.ts +48 -0
- package/dist/folds/boundaries.js +119 -0
- package/dist/folds/certified.d.ts +55 -0
- package/dist/folds/certified.js +178 -0
- package/dist/folds/certify.d.ts +87 -0
- package/dist/folds/certify.js +2611 -0
- package/dist/footprints/memo.d.ts +74 -0
- package/dist/footprints/memo.js +256 -0
- package/dist/footprints/ranges.d.ts +78 -0
- package/dist/footprints/ranges.js +263 -0
- package/dist/footprints/read-scan.d.ts +18 -0
- package/dist/footprints/read-scan.js +94 -0
- package/dist/footprints/read-windows.d.ts +77 -0
- package/dist/footprints/read-windows.js +245 -0
- package/dist/index.d.ts +16 -4
- package/dist/index.js +14 -2
- package/dist/iteration/admission.d.ts +149 -0
- package/dist/iteration/admission.js +201 -0
- package/dist/iteration/index.d.ts +239 -0
- package/dist/iteration/index.js +1210 -0
- package/dist/iteration/inline.d.ts +182 -0
- package/dist/{inline.js → iteration/inline.js} +277 -21
- package/dist/{iteration-owner.d.ts → iteration/owner.d.ts} +16 -3
- package/dist/{iteration-owner.js → iteration/owner.js} +6 -5
- package/dist/iteration/worker.js +216 -0
- package/dist/{managed.d.ts → managed/index.d.ts} +75 -3
- package/dist/managed/index.js +817 -0
- package/dist/managed/outbox.d.ts +128 -0
- package/dist/managed/outbox.js +156 -0
- package/dist/managed/pool.d.ts +221 -0
- package/dist/managed/pool.js +310 -0
- package/dist/managed/tasks.d.ts +154 -0
- package/dist/managed/tasks.js +183 -0
- package/dist/{bake.d.ts → memory/bake.d.ts} +12 -6
- package/dist/{bake.js → memory/bake.js} +9 -7
- package/dist/memory/continuation.d.ts +141 -0
- package/dist/memory/continuation.js +495 -0
- package/dist/memory/elastic-peer.d.ts +20 -0
- package/dist/memory/elastic-peer.js +39 -0
- package/dist/memory/elastic-sql.d.ts +11 -0
- package/dist/memory/elastic-sql.js +35 -0
- package/dist/memory/elastic.d.ts +130 -0
- package/dist/memory/elastic.js +475 -0
- package/dist/memory/growth-governor.d.ts +16 -0
- package/dist/memory/growth-governor.js +42 -0
- package/dist/memory/imports.d.ts +10 -0
- package/dist/memory/imports.js +89 -0
- package/dist/{iteration-layout.d.ts → memory/iteration-layout.d.ts} +61 -1
- package/dist/{iteration-layout.js → memory/iteration-layout.js} +54 -3
- package/dist/memory/lease.d.ts +45 -0
- package/dist/memory/lease.js +274 -0
- package/dist/{pages.d.ts → memory/pages.d.ts} +3 -3
- package/dist/memory.d.ts +5 -10
- package/dist/memory.js +5 -89
- package/dist/{context.d.ts → node/context.d.ts} +17 -3
- package/dist/{context.js → node/context.js} +60 -14
- package/dist/{host.d.ts → node/host.d.ts} +1 -1
- package/dist/{host.js → node/host.js} +2 -2
- package/dist/{node.d.ts → node/index.d.ts} +46 -49
- package/dist/{node.js → node/index.js} +101 -26
- package/dist/{tasks.d.ts → node/tasks.d.ts} +16 -17
- package/dist/{tasks.js → node/tasks.js} +12 -11
- package/dist/node/worker.d.ts +1 -0
- package/dist/{worker.js → node/worker.js} +2 -2
- package/dist/ownership/index.d.ts +161 -0
- package/dist/ownership/index.js +6565 -0
- package/dist/ownership/redirect.d.ts +30 -0
- package/dist/ownership/redirect.js +179 -0
- package/dist/ownership/slices.d.ts +44 -0
- package/dist/ownership/slices.js +72 -0
- package/dist/{frames.d.ts → remote/frames.d.ts} +6 -2
- package/dist/remote/frames.js +306 -0
- package/dist/{remote.d.ts → remote/index.d.ts} +7 -2
- package/dist/{remote.js → remote/index.js} +7 -2
- package/dist/routing/index.d.ts +203 -0
- package/dist/routing/index.js +671 -0
- package/dist/routing/worker.d.ts +1 -0
- package/dist/routing/worker.js +4 -0
- package/dist/slices/index.d.ts +126 -0
- package/dist/slices/index.js +441 -0
- package/dist/slices/worker.d.ts +1 -0
- package/dist/slices/worker.js +38 -0
- package/dist/workers.d.ts +5 -0
- package/dist/workers.js +5 -0
- package/package.json +32 -46
- package/dist/frames.js +0 -159
- package/dist/inline.d.ts +0 -68
- package/dist/iteration-admission.d.ts +0 -76
- package/dist/iteration-admission.js +0 -72
- package/dist/iteration-worker.js +0 -150
- package/dist/iteration.d.ts +0 -163
- package/dist/iteration.js +0 -435
- package/dist/managed.js +0 -421
- /package/dist/{browser-worker.d.ts → browser/worker.d.ts} +0 -0
- /package/dist/{browser-worker.js → browser/worker.js} +0 -0
- /package/dist/{guards.js → execution/guards.js} +0 -0
- /package/dist/{import-order.d.ts → execution/import-order.d.ts} +0 -0
- /package/dist/{import-order.js → execution/import-order.js} +0 -0
- /package/dist/{transaction.js → execution/transaction.js} +0 -0
- /package/dist/{iteration-worker.d.ts → execution/types.js} +0 -0
- /package/dist/{worker.d.ts → iteration/worker.d.ts} +0 -0
- /package/dist/{pages.js → memory/pages.js} +0 -0
- /package/dist/{values.d.ts → remote/values.d.ts} +0 -0
- /package/dist/{values.js → remote/values.js} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { type MessagePort } from 'node:worker_threads';
|
|
2
|
+
import type { TaskRecord } from '../execution/types.ts';
|
|
2
3
|
/** Task input and output are copied between threads. Strings and bytes are both accepted. */
|
|
3
4
|
export type TaskInput = string | Uint8Array;
|
|
5
|
+
/** Options for one submitted task. */
|
|
6
|
+
export interface SubmitOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Posts a `SharedArrayBuffer`-backed byte input without copying it. The caller promises not to
|
|
9
|
+
* write to those bytes until the task is joined. The audit reads the same bytes at join. The
|
|
10
|
+
* default copies, so a later write to the buffer never reaches the task. Strings and inputs
|
|
11
|
+
* on other buffers are copied either way.
|
|
12
|
+
*/
|
|
13
|
+
share?: boolean;
|
|
14
|
+
}
|
|
4
15
|
/** The end of a pool link that a worker passes to `serveTasks`. */
|
|
5
16
|
export interface TaskLink {
|
|
6
17
|
port: MessagePort;
|
|
7
18
|
signal: SharedArrayBuffer;
|
|
8
19
|
}
|
|
9
|
-
|
|
10
|
-
export interface TaskRecord {
|
|
11
|
-
id: string;
|
|
12
|
-
worker: number;
|
|
13
|
-
name: string;
|
|
14
|
-
submitMs: number;
|
|
15
|
-
startMs: number;
|
|
16
|
-
endMs: number;
|
|
17
|
-
waitMs: number;
|
|
18
|
-
cpuMs?: number;
|
|
19
|
-
inputBytes: number;
|
|
20
|
-
outputBytes: number;
|
|
21
|
-
}
|
|
20
|
+
export type { TaskRecord };
|
|
22
21
|
/** Options for `TaskPool`. */
|
|
23
22
|
export interface TaskPoolOptions {
|
|
24
23
|
/**
|
|
@@ -80,17 +79,17 @@ export declare class TaskPool {
|
|
|
80
79
|
/** The worker end of link `index`. List its port in the worker's `transferList`. */
|
|
81
80
|
link(index: number): TaskLink;
|
|
82
81
|
/** Starts a task and returns a handle for `join`. */
|
|
83
|
-
submit(name: string, input?: TaskInput): string;
|
|
82
|
+
submit(name: string, input?: TaskInput, options?: SubmitOptions): string;
|
|
84
83
|
/** Starts a task whose input is a JSON value. */
|
|
85
84
|
submitJson(name: string, value: unknown): string;
|
|
86
85
|
/** Blocks the calling thread until the task finishes. Use it where the caller cannot yield. */
|
|
87
86
|
join(handle: string): TaskResult;
|
|
88
87
|
/** Waits for the task without blocking the event loop. */
|
|
89
88
|
joinAsync(handle: string): Promise<TaskResult>;
|
|
90
|
-
/** Submits every job, then joins them in submission order. */
|
|
91
|
-
run(jobs: [name: string, input?: TaskInput][]): Promise<TaskResult[]>;
|
|
89
|
+
/** Submits every job, then joins them in submission order. `options` applies to every job. */
|
|
90
|
+
run(jobs: [name: string, input?: TaskInput][], options?: SubmitOptions): Promise<TaskResult[]>;
|
|
92
91
|
/** Blocking form of `run`. */
|
|
93
|
-
runSync(jobs: [name: string, input?: TaskInput][]): TaskResult[];
|
|
92
|
+
runSync(jobs: [name: string, input?: TaskInput][], options?: SubmitOptions): TaskResult[];
|
|
94
93
|
/** Returns the records of tasks joined since the last call and clears them. */
|
|
95
94
|
drain(): TaskRecord[];
|
|
96
95
|
/** Closes the channels. Tasks that were not joined are dropped. */
|
|
@@ -128,17 +128,16 @@ export class TaskPool {
|
|
|
128
128
|
return link;
|
|
129
129
|
}
|
|
130
130
|
/** Starts a task and returns a handle for `join`. */
|
|
131
|
-
submit(name, input = '') {
|
|
131
|
+
submit(name, input = '', options = {}) {
|
|
132
132
|
if (this.#closed)
|
|
133
133
|
throw new Error('task pool is closed');
|
|
134
134
|
const worker = this.#next++ % this.#width;
|
|
135
135
|
const seq = this.#seq++;
|
|
136
136
|
const id = `${worker}:${seq}`;
|
|
137
137
|
const submitMs = now();
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
: input;
|
|
138
|
+
const shared = typeof input !== 'string' && input.buffer instanceof SharedArrayBuffer;
|
|
139
|
+
// postMessage shares a SharedArrayBuffer view as it is, so the default copies it first
|
|
140
|
+
const posted = shared && !options.share ? Uint8Array.from(input) : input;
|
|
142
141
|
this.#owner[worker].port.postMessage({
|
|
143
142
|
id,
|
|
144
143
|
name,
|
|
@@ -149,7 +148,9 @@ export class TaskPool {
|
|
|
149
148
|
const audited = sampled
|
|
150
149
|
? typeof input === 'string' || posted !== input
|
|
151
150
|
? posted
|
|
152
|
-
:
|
|
151
|
+
: shared && options.share
|
|
152
|
+
? input
|
|
153
|
+
: Uint8Array.from(input)
|
|
153
154
|
: undefined;
|
|
154
155
|
this.#pending.set(id, {
|
|
155
156
|
id,
|
|
@@ -202,17 +203,17 @@ export class TaskPool {
|
|
|
202
203
|
}
|
|
203
204
|
return this.#finish(pending, reply, waitMs);
|
|
204
205
|
}
|
|
205
|
-
/** Submits every job, then joins them in submission order. */
|
|
206
|
-
async run(jobs) {
|
|
207
|
-
const handles = jobs.map(([name, input]) => this.submit(name, input));
|
|
206
|
+
/** Submits every job, then joins them in submission order. `options` applies to every job. */
|
|
207
|
+
async run(jobs, options) {
|
|
208
|
+
const handles = jobs.map(([name, input]) => this.submit(name, input, options));
|
|
208
209
|
const results = [];
|
|
209
210
|
for (const handle of handles)
|
|
210
211
|
results.push(await this.joinAsync(handle));
|
|
211
212
|
return results;
|
|
212
213
|
}
|
|
213
214
|
/** Blocking form of `run`. */
|
|
214
|
-
runSync(jobs) {
|
|
215
|
-
const handles = jobs.map(([name, input]) => this.submit(name, input));
|
|
215
|
+
runSync(jobs, options) {
|
|
216
|
+
const handles = jobs.map(([name, input]) => this.submit(name, input, options));
|
|
216
217
|
return handles.map((handle) => this.join(handle));
|
|
217
218
|
}
|
|
218
219
|
/** Returns the records of tasks joined since the last call and clears them. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parentPort, threadId, workerData } from 'node:worker_threads';
|
|
2
|
-
import { SpeculationLimit, transaction } from "
|
|
3
|
-
import { numberBits, restoreNumbers } from "
|
|
2
|
+
import { SpeculationLimit, transaction } from "../execution/transaction.js";
|
|
3
|
+
import { numberBits, restoreNumbers } from "../remote/values.js";
|
|
4
4
|
const { module, nativeModule, memory, importModule, importName } = workerData;
|
|
5
5
|
const nativeInstance = new WebAssembly.Instance(nativeModule, {
|
|
6
6
|
[importModule]: { [importName]: memory }
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export type Obligation = 'state-isolation' | 'read-before-write' | 'aliasing' | 'final-state' | 'escaping-addresses' | 'failure' | 'provenance' | 'scope';
|
|
2
|
+
export type OwnershipReason = 'isolation' | 'read-before-write' | 'aliasing' | 'final-state' | 'escape' | 'failure' | 'allocator' | 'ptr-store' | 'ptr-return' | 'ptr-import' | 'ptr-compare' | 'ptr-control' | 'ptr-deref' | 'prefix-store' | 'prefix-cover' | 'config-store' | 'no-window' | 'unsupported' | 'budget' | 'invalid';
|
|
3
|
+
export declare const OWNERSHIP_REASONS: readonly OwnershipReason[];
|
|
4
|
+
export interface OwnershipConvention {
|
|
5
|
+
/** Parameter positions of the record table, the record count and the output pointer. Default 0, 1, 2. */
|
|
6
|
+
table: number;
|
|
7
|
+
count: number;
|
|
8
|
+
out: number;
|
|
9
|
+
/** Byte offsets in a table record that hold pointers. Default 0, 8, 12. */
|
|
10
|
+
pointers: number[];
|
|
11
|
+
/** Bytes of one table record. Default 16. */
|
|
12
|
+
recordBytes: number;
|
|
13
|
+
}
|
|
14
|
+
export interface OwnershipOptions {
|
|
15
|
+
/** Exported function that runs the records loop. Default `bulk`. */
|
|
16
|
+
entry?: string;
|
|
17
|
+
convention?: Partial<OwnershipConvention>;
|
|
18
|
+
/** Windows proposed by a probe; they only add bytes to the windows the checker derives. */
|
|
19
|
+
proposed?: {
|
|
20
|
+
low: number;
|
|
21
|
+
end: number;
|
|
22
|
+
}[];
|
|
23
|
+
/** Step limit of one analysis pass. Default 4,000,000. */
|
|
24
|
+
maxSteps?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The allocator mode: the record's arena pointer may be stored in a window and used to allocate.
|
|
27
|
+
* `arenaBytes` is the size of the arena slice. `assumeInArena` counts the dereferences it cannot
|
|
28
|
+
* bound instead of refusing; the result is then never a certificate, only the next refusal.
|
|
29
|
+
*/
|
|
30
|
+
allocator?: {
|
|
31
|
+
arenaBytes: number;
|
|
32
|
+
arenaWord?: number;
|
|
33
|
+
assumeInArena?: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The prefix-written domain: a buffer filled up to a cursor cell. `true` finds the cell and the buffer
|
|
37
|
+
* base from the module; an object names them (a hint, the checker proves every claim itself).
|
|
38
|
+
*/
|
|
39
|
+
prefix?: true | {
|
|
40
|
+
cell: number;
|
|
41
|
+
base: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* A configuration every record shares and none writes: the table word at byte offset `word` of every
|
|
45
|
+
* record equals `at`, and the bytes `[at, at + bytes.length)` hold `bytes` when the run starts. The
|
|
46
|
+
* checker reads them as constants. `extent` is the size of the whole configuration region from `at`; a
|
|
47
|
+
* record-derived pointer is never equal to an address in it. The router checks all of this before it runs.
|
|
48
|
+
*/
|
|
49
|
+
config?: {
|
|
50
|
+
word: number;
|
|
51
|
+
at: number;
|
|
52
|
+
bytes: Uint8Array;
|
|
53
|
+
extent: number;
|
|
54
|
+
};
|
|
55
|
+
/** The deepest nesting of one function in the call stack the checker follows; without it recursion is refused. */
|
|
56
|
+
recursion?: number;
|
|
57
|
+
}
|
|
58
|
+
export interface ConfigEvidence {
|
|
59
|
+
word: number;
|
|
60
|
+
at: number;
|
|
61
|
+
/** The frozen bytes as lowercase hex. */
|
|
62
|
+
bytes: string;
|
|
63
|
+
extent: number;
|
|
64
|
+
rules: string[];
|
|
65
|
+
}
|
|
66
|
+
export interface PrefixEvidence {
|
|
67
|
+
/** Address of the 4-byte cursor cell. */
|
|
68
|
+
cell: number;
|
|
69
|
+
/** Address of buffer byte 0; the bytes `[base, base + cursor)` are written by the record. */
|
|
70
|
+
base: number;
|
|
71
|
+
/** Cursor stores the checker discharged against the written prefix. */
|
|
72
|
+
cursorStores: number;
|
|
73
|
+
/** Calls analysed once per exact cursor value. */
|
|
74
|
+
splits: number;
|
|
75
|
+
rules: string[];
|
|
76
|
+
}
|
|
77
|
+
export type ProvenanceRule = 'store' | 'return' | 'import' | 'compare' | 'control' | 'deref';
|
|
78
|
+
export interface AllocatorEvidence {
|
|
79
|
+
arenaBytes: number;
|
|
80
|
+
arenaWord: number;
|
|
81
|
+
/** Window ranges that may hold an arena-derived pointer; the last record supplies their serial values. */
|
|
82
|
+
pointerCells: [number, number][];
|
|
83
|
+
/** Arena offsets where an arena-derived value may have been stored; the bytes there may differ between bases. */
|
|
84
|
+
arenaTaint: [number, number][];
|
|
85
|
+
/** Heap dereferences the interval domain put inside the arena. */
|
|
86
|
+
derefsProved: number;
|
|
87
|
+
rules: Record<ProvenanceRule, string>;
|
|
88
|
+
/** What a router that moves the arena must do. */
|
|
89
|
+
shiftRule: string;
|
|
90
|
+
assumptions: string[];
|
|
91
|
+
}
|
|
92
|
+
export interface OwnershipWindow {
|
|
93
|
+
low: number;
|
|
94
|
+
end: number;
|
|
95
|
+
}
|
|
96
|
+
export interface SiteCounts {
|
|
97
|
+
exact: number;
|
|
98
|
+
bounded: number;
|
|
99
|
+
dynamic: number;
|
|
100
|
+
outside: number;
|
|
101
|
+
bulk: number;
|
|
102
|
+
}
|
|
103
|
+
export interface OwnershipCertificate {
|
|
104
|
+
kind: 'certificate';
|
|
105
|
+
schema: 'folio.ownership.v1';
|
|
106
|
+
checker: string;
|
|
107
|
+
moduleSha256: string;
|
|
108
|
+
entry: string;
|
|
109
|
+
convention: OwnershipConvention;
|
|
110
|
+
proposed: OwnershipWindow[];
|
|
111
|
+
windows: OwnershipWindow[];
|
|
112
|
+
/** Byte ranges the last record's copy supplies; the last record wrote every one of them. */
|
|
113
|
+
copyOut: [number, number][];
|
|
114
|
+
written: [number, number][];
|
|
115
|
+
covered: [number, number][];
|
|
116
|
+
sites: Record<string, SiteCounts>;
|
|
117
|
+
/** Stores whose address is neither record-derived nor inside a window; the in-place slice route refuses them. */
|
|
118
|
+
wildStores: number;
|
|
119
|
+
accesses: Record<string, string>;
|
|
120
|
+
functions: string[];
|
|
121
|
+
evidence: Record<Exclude<Obligation, 'scope' | 'provenance'>, string>;
|
|
122
|
+
/** Present only for a certificate made in allocator mode. */
|
|
123
|
+
allocator?: AllocatorEvidence;
|
|
124
|
+
/** Present only for a certificate made with the prefix option when a cursor cell was found. */
|
|
125
|
+
prefix?: PrefixEvidence;
|
|
126
|
+
/** Present only for a certificate made with the config option; the router checks these premises at admission. */
|
|
127
|
+
config?: ConfigEvidence;
|
|
128
|
+
/** Present only when the analysis followed recursion: the cap it was given and the deepest nesting it reached. */
|
|
129
|
+
recursion?: {
|
|
130
|
+
cap: number;
|
|
131
|
+
depth: number;
|
|
132
|
+
};
|
|
133
|
+
assumptions: string[];
|
|
134
|
+
stats: {
|
|
135
|
+
steps: number;
|
|
136
|
+
calls: number;
|
|
137
|
+
loops: number;
|
|
138
|
+
passes: number;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export interface OwnershipRefusal {
|
|
142
|
+
kind: 'refusal';
|
|
143
|
+
reason: OwnershipReason;
|
|
144
|
+
obligation: Obligation;
|
|
145
|
+
detail: string;
|
|
146
|
+
address?: number;
|
|
147
|
+
}
|
|
148
|
+
export declare const OWNERSHIP_CHECKER = "folio-ownership-2";
|
|
149
|
+
/** The loads, stores and bulk operations of a function body, in a fixed pre-order walk. */
|
|
150
|
+
export declare function memoryAccesses(body: number): number[];
|
|
151
|
+
export declare function certifyOwnership(bytes: Uint8Array, options?: OwnershipOptions): OwnershipCertificate | OwnershipRefusal;
|
|
152
|
+
/** Re-derives the certificate from the module and compares everything except the work counters. */
|
|
153
|
+
export declare function verifyOwnership(bytes: Uint8Array, certificate: OwnershipCertificate): boolean;
|
|
154
|
+
/** Whether no region of the records overlaps a window or, with the config option, the config region. */
|
|
155
|
+
export declare function guardRecords(certificate: OwnershipCertificate, regions: [number, number][]): boolean;
|
|
156
|
+
/** Whether a record table and a memory image satisfy the premises of a config certificate. */
|
|
157
|
+
export declare function checkConfig(certificate: OwnershipCertificate, memory: Uint8Array, table: {
|
|
158
|
+
at: number;
|
|
159
|
+
count: number;
|
|
160
|
+
recordBytes?: number;
|
|
161
|
+
}): boolean;
|