@hesohq/verify-wasm 0.4.3-dev.35 → 0.5.0-dev.71
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/heso_wasm.d.ts +387 -43
- package/heso_wasm.js +1293 -243
- package/heso_wasm_bg.wasm +0 -0
- package/heso_wasm_bg.wasm.d.ts +93 -43
- package/package.json +9 -2
package/heso_wasm.d.ts
CHANGED
|
@@ -94,6 +94,168 @@ export class ChainResult {
|
|
|
94
94
|
set seq(value: number | null | undefined);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* The kind-tagged verdict of [`verify_commitment_wasm`]. `verdict` is one of
|
|
99
|
+
* `"Valid"`, `"InvalidSignature"`, `"FingerprintMismatch"`, `"WrongAlgorithm"`,
|
|
100
|
+
* `"Malformed"`; a recipient accepts the commitment ONLY on `"Valid"`.
|
|
101
|
+
* `signer_fpr` carries the recomputed `blake3(pubkey)` fingerprint (only
|
|
102
|
+
* meaningful on `"Valid"`).
|
|
103
|
+
*/
|
|
104
|
+
export class CommitmentVerdict {
|
|
105
|
+
private constructor();
|
|
106
|
+
free(): void;
|
|
107
|
+
[Symbol.dispose](): void;
|
|
108
|
+
/**
|
|
109
|
+
* The recomputed `blake3(pubkey)` fingerprint (only set on `"Valid"`).
|
|
110
|
+
*/
|
|
111
|
+
signer_fpr: string;
|
|
112
|
+
/**
|
|
113
|
+
* The verdict tag.
|
|
114
|
+
*/
|
|
115
|
+
verdict: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The base verdict + the rendered signed metrics + the offline-recomputed cost.
|
|
120
|
+
*
|
|
121
|
+
* `verdict` / `trust_level` are exactly what [`verify_action_receipt_wasm`]
|
|
122
|
+
* returns. The metric fields are the SIGNED values (the closed `status` /
|
|
123
|
+
* `token_source` enums rendered to their wire snake_case strings). `cost_display`
|
|
124
|
+
* / `recomputed_cost_micros` are RECOMPUTED from the rate card the caller passed
|
|
125
|
+
* in — `priced == false` (and both `None`) when that card does not price the
|
|
126
|
+
* model; never a guessed figure. `card_id_matches` tells the reader whether the
|
|
127
|
+
* card handed in is the one the receipt actually named.
|
|
128
|
+
*/
|
|
129
|
+
export class MetricsVerdict {
|
|
130
|
+
private constructor();
|
|
131
|
+
free(): void;
|
|
132
|
+
[Symbol.dispose](): void;
|
|
133
|
+
/**
|
|
134
|
+
* Request bytes sent, when the transport exposed it.
|
|
135
|
+
*/
|
|
136
|
+
get bytes_in(): number | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Request bytes sent, when the transport exposed it.
|
|
139
|
+
*/
|
|
140
|
+
set bytes_in(value: number | null | undefined);
|
|
141
|
+
/**
|
|
142
|
+
* Response bytes received, when the transport exposed it.
|
|
143
|
+
*/
|
|
144
|
+
get bytes_out(): number | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Response bytes received, when the transport exposed it.
|
|
147
|
+
*/
|
|
148
|
+
set bytes_out(value: number | null | undefined);
|
|
149
|
+
/**
|
|
150
|
+
* Whether the passed-in card is the one the receipt named.
|
|
151
|
+
*/
|
|
152
|
+
card_id_matches: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Recomputed cost as a 6-decimal display string; `None` when not priced.
|
|
155
|
+
*/
|
|
156
|
+
get cost_display(): string | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Recomputed cost as a 6-decimal display string; `None` when not priced.
|
|
159
|
+
*/
|
|
160
|
+
set cost_display(value: string | null | undefined);
|
|
161
|
+
/**
|
|
162
|
+
* Wall-clock duration in whole milliseconds.
|
|
163
|
+
*/
|
|
164
|
+
get duration_ms(): number | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Wall-clock duration in whole milliseconds.
|
|
167
|
+
*/
|
|
168
|
+
set duration_ms(value: number | null | undefined);
|
|
169
|
+
/**
|
|
170
|
+
* Whether the receipt carried a signed `metrics` block.
|
|
171
|
+
*/
|
|
172
|
+
has_metrics: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The `provider/model` key derived from the signed `action.fields`.
|
|
175
|
+
*/
|
|
176
|
+
get model_key(): string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* The `provider/model` key derived from the signed `action.fields`.
|
|
179
|
+
*/
|
|
180
|
+
set model_key(value: string | null | undefined);
|
|
181
|
+
/**
|
|
182
|
+
* `true` iff the model is priced by the passed-in card.
|
|
183
|
+
*/
|
|
184
|
+
priced: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The rate-card id AS NAMED in the signed receipt.
|
|
187
|
+
*/
|
|
188
|
+
get rate_card_id(): string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* The rate-card id AS NAMED in the signed receipt.
|
|
191
|
+
*/
|
|
192
|
+
set rate_card_id(value: string | null | undefined);
|
|
193
|
+
/**
|
|
194
|
+
* Recomputed cost in micro-USD (`BigInt`); `None` when not priced.
|
|
195
|
+
*/
|
|
196
|
+
get recomputed_cost_micros(): bigint | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Recomputed cost in micro-USD (`BigInt`); `None` when not priced.
|
|
199
|
+
*/
|
|
200
|
+
set recomputed_cost_micros(value: bigint | null | undefined);
|
|
201
|
+
/**
|
|
202
|
+
* Transport-level retries before this outcome.
|
|
203
|
+
*/
|
|
204
|
+
get retries(): number | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Transport-level retries before this outcome.
|
|
207
|
+
*/
|
|
208
|
+
set retries(value: number | null | undefined);
|
|
209
|
+
/**
|
|
210
|
+
* Transport status code, when one applied.
|
|
211
|
+
*/
|
|
212
|
+
get status_code(): number | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Transport status code, when one applied.
|
|
215
|
+
*/
|
|
216
|
+
set status_code(value: number | null | undefined);
|
|
217
|
+
/**
|
|
218
|
+
* Execution-outcome class, wire snake_case (`"ok"`, `"server_error"`, …).
|
|
219
|
+
*/
|
|
220
|
+
get status(): string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Execution-outcome class, wire snake_case (`"ok"`, `"server_error"`, …).
|
|
223
|
+
*/
|
|
224
|
+
set status(value: string | null | undefined);
|
|
225
|
+
/**
|
|
226
|
+
* Token-count source, wire snake_case (`"provider_reported"`/`"estimated"`).
|
|
227
|
+
*/
|
|
228
|
+
get token_source(): string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Token-count source, wire snake_case (`"provider_reported"`/`"estimated"`).
|
|
231
|
+
*/
|
|
232
|
+
set token_source(value: string | null | undefined);
|
|
233
|
+
/**
|
|
234
|
+
* Provider-reported (or estimated) input tokens.
|
|
235
|
+
*/
|
|
236
|
+
get tokens_in(): number | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* Provider-reported (or estimated) input tokens.
|
|
239
|
+
*/
|
|
240
|
+
set tokens_in(value: number | null | undefined);
|
|
241
|
+
/**
|
|
242
|
+
* Provider-reported (or estimated) output tokens.
|
|
243
|
+
*/
|
|
244
|
+
get tokens_out(): number | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Provider-reported (or estimated) output tokens.
|
|
247
|
+
*/
|
|
248
|
+
set tokens_out(value: number | null | undefined);
|
|
249
|
+
/**
|
|
250
|
+
* The re-derived trust level (`"L0"`/`"L1"`); `""` unless `verdict == "Valid"`.
|
|
251
|
+
*/
|
|
252
|
+
trust_level: string;
|
|
253
|
+
/**
|
|
254
|
+
* The base `ActionOutcome` verdict tag (`"Valid"`, `"HashMismatch"`, …).
|
|
255
|
+
*/
|
|
256
|
+
verdict: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
97
259
|
/**
|
|
98
260
|
* The verified, decoded result of a delegation envelope.
|
|
99
261
|
*/
|
|
@@ -136,12 +298,71 @@ export function actionCanonicalBytes(content_json: string): Uint8Array;
|
|
|
136
298
|
*/
|
|
137
299
|
export function anchoredContentHash(content_json: string): string;
|
|
138
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Assemble the on-the-wire approval-token frame from the detached signature the
|
|
303
|
+
* in-browser approver key produced over [`approval_token_payload_wasm`]. Pure
|
|
304
|
+
* assemble, no key. The base64 of these bytes is the bearer `token_b64`.
|
|
305
|
+
*
|
|
306
|
+
* Byte order (see [`heso_action::domain::approval_token_frame`], the ONE source —
|
|
307
|
+
* the kernel verifier parses EXACTLY this and rejects trailing bytes):
|
|
308
|
+
* `nonce(32) ++ expiry(BE8) ++ decision_tag(1) ++ scope_len(BE4) ++ scope
|
|
309
|
+
* ++ signature(64) ++ pubkey(32)`
|
|
310
|
+
*
|
|
311
|
+
* `nonce` — 32 raw bytes (Uint8Array); MUST equal the nonce signed over.
|
|
312
|
+
* `expiryUnixSecs` — token expiry as BigInt Unix seconds.
|
|
313
|
+
* `decision` — `"approved"` or `"rejected"`.
|
|
314
|
+
* `scope` — the UTF-8 scope string.
|
|
315
|
+
* `signature` — 64 raw Ed25519 signature bytes (Uint8Array).
|
|
316
|
+
* `pubkey` — 32 raw Ed25519 public-key bytes (Uint8Array).
|
|
317
|
+
*/
|
|
318
|
+
export function approvalTokenFrame(nonce: Uint8Array, expiry_unix_secs: bigint, decision: string, scope: string, signature: Uint8Array, pubkey: Uint8Array): Uint8Array;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Return the EXACT bytes the approver's Ed25519 key must sign for an approval
|
|
322
|
+
* token (the Option-C in-browser minter signs THESE, never any hand-rolled
|
|
323
|
+
* bytes). Mirrors [`l1_cosign_payload_wasm`]: pure assemble, no OsRng, no key —
|
|
324
|
+
* the browser holds the key, this only produces the payload a detached signer
|
|
325
|
+
* covers.
|
|
326
|
+
*
|
|
327
|
+
* Byte order (see [`heso_action::domain::approval_token_signed_payload`], the ONE
|
|
328
|
+
* source — the kernel verifier recomputes the identical bytes):
|
|
329
|
+
* `APPROVAL_TOKEN_SIGNING_DOMAIN ++ nonce(32) ++ expiry(BE8) ++ decision_tag(1)
|
|
330
|
+
* ++ scope_len(BE4) ++ scope ++ action_canonical_bytes`
|
|
331
|
+
*
|
|
332
|
+
* `contentJson` — the `ActionContent` JSON; canonicalized through the SAME
|
|
333
|
+
* RFC-8785 path as [`action_canonical_bytes_wasm`] (the
|
|
334
|
+
* browser MUST NOT hand-roll JCS).
|
|
335
|
+
* `nonce` — 32 raw replay-prevention bytes (Uint8Array).
|
|
336
|
+
* `expiryUnixSecs` — token expiry as BigInt Unix seconds.
|
|
337
|
+
* `decision` — `"approved"` or `"rejected"` (the SEC-02 decision binding).
|
|
338
|
+
* `scope` — the UTF-8 scope string.
|
|
339
|
+
*/
|
|
340
|
+
export function approvalTokenPayload(content_json: string, nonce: Uint8Array, expiry_unix_secs: bigint, decision: string, scope: string): Uint8Array;
|
|
341
|
+
|
|
139
342
|
/**
|
|
140
343
|
* Compute a domain-separated BLAKE3 chain-link digest from two 64-hex hashes.
|
|
141
344
|
* Replaces the `@noble`-backed chain helper in `crypto.ts`.
|
|
142
345
|
*/
|
|
143
346
|
export function chainHashHex(prev_hex: string, action_hex: string): string;
|
|
144
347
|
|
|
348
|
+
/**
|
|
349
|
+
* PURE. Return the RFC-8785 (JCS) canonical bytes of a commitment envelope JSON
|
|
350
|
+
* string — the exact bytes the detached operator signature is computed over
|
|
351
|
+
* (after the `COMMITMENT_SIGNING_DOMAIN` prefix). Delegates to the single kernel
|
|
352
|
+
* JCS impl; never re-canonicalizes. Throws `[MALFORMED]` if the JSON does not
|
|
353
|
+
* parse as a `CommitmentEnvelope` and `[CANON]` if it cannot be canonicalized.
|
|
354
|
+
*/
|
|
355
|
+
export function commitmentEnvelopeCanonicalBytes(envelope_json: string): Uint8Array;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The **commitment fingerprint** of an Ed25519 public key: `blake3(raw_pubkey)`,
|
|
359
|
+
* the full 32-byte digest, lowercase 64-hex, NO prefix — the value the producer
|
|
360
|
+
* puts in the wire `signer_fpr`. DISTINCT from the `heso:`-prefixed Grade-0
|
|
361
|
+
* signer fingerprint. Throws `[MALFORMED]` if `pubkey_b64` is not base64 of
|
|
362
|
+
* exactly 32 bytes.
|
|
363
|
+
*/
|
|
364
|
+
export function commitmentFingerprint(pubkey_b64: string): string;
|
|
365
|
+
|
|
145
366
|
/**
|
|
146
367
|
* BLAKE3 (64-hex) of the canonical bytes — the value that goes into
|
|
147
368
|
* `action_hash`. Replaces `@noble/hashes` blake3 usage in `crypto.ts`.
|
|
@@ -193,6 +414,13 @@ export function l1CosignPayload(suspended_content_json: string, approver_record_
|
|
|
193
414
|
*/
|
|
194
415
|
export function parsePolicy(toml_src: string): void;
|
|
195
416
|
|
|
417
|
+
/**
|
|
418
|
+
* Parse a C2SP signed-note checkpoint and return its `{origin, size, root_hex,
|
|
419
|
+
* text}` as a JSON string. Does NO signature verification — call
|
|
420
|
+
* `verifyNoteAgainstKey` for that. Throws `[NOTE]` on a malformed note.
|
|
421
|
+
*/
|
|
422
|
+
export function parseSignedNote(note: string): string;
|
|
423
|
+
|
|
196
424
|
/**
|
|
197
425
|
* Parse + validate policy TOML and return the rules as a JSON array of
|
|
198
426
|
* [`PolicyRule`] (the Rust wire shape) so the web renders a pulled policy via the
|
|
@@ -244,6 +472,14 @@ export function ruleToSentence(rule_json: string): string;
|
|
|
244
472
|
*/
|
|
245
473
|
export function shortHash(hex: string, prefix?: string | null): string;
|
|
246
474
|
|
|
475
|
+
/**
|
|
476
|
+
* The frozen top-tree leaf VALUE committing one org's epoch snapshot:
|
|
477
|
+
* `SHA-256(TOP_LEAF_DOMAIN || org_id(16) || epoch(BE8) || org_root(32))`,
|
|
478
|
+
* 64-hex. The stage-2 commitment a two-stage inclusion proof rides. Throws
|
|
479
|
+
* `[ORG]`/`[ROOT]` on malformed inputs.
|
|
480
|
+
*/
|
|
481
|
+
export function topLeafValue(org_id_hyphenated: string, epoch: bigint, org_root_hex: string): string;
|
|
482
|
+
|
|
247
483
|
/**
|
|
248
484
|
* Floor pre-check over a candidate ruleset (JSON array of [`PolicyRule`]) WITHOUT
|
|
249
485
|
* serializing to TOML — the live check the builder runs as the user edits.
|
|
@@ -267,6 +503,25 @@ export function validateNoFloorBypass(rules_json: string): void;
|
|
|
267
503
|
*/
|
|
268
504
|
export function verifyActionReceipt(receipt_bytes: Uint8Array): ActionVerdict;
|
|
269
505
|
|
|
506
|
+
/**
|
|
507
|
+
* Verify a single `ActionReceipt` AND render its signed metrics + recompute cost
|
|
508
|
+
* from the passed-in public rate card.
|
|
509
|
+
*
|
|
510
|
+
* Runs the EXISTING [`verify_action_receipt`] for the base outcome + trust level
|
|
511
|
+
* (so that path is byte-for-byte unchanged), then — when the receipt parses —
|
|
512
|
+
* renders the signed metrics and recomputes the cost via the pure
|
|
513
|
+
* `heso_action::metrics_view::metrics_view`. Never panics:
|
|
514
|
+
*
|
|
515
|
+
* - receipt fails to PARSE ⇒ base verdict + `has_metrics: false` (no metrics).
|
|
516
|
+
* - rate card fails to PARSE ⇒ base verdict + rendered metrics, but `priced:
|
|
517
|
+
* false` and `cost_display: None` (cost cannot be recomputed without a card).
|
|
518
|
+
* - everything parses ⇒ full metrics + recomputed cost.
|
|
519
|
+
*
|
|
520
|
+
* `receipt_bytes` — the raw `ActionReceipt` JSON bytes (`Uint8Array`).
|
|
521
|
+
* `rate_card_json` — the public rate-card JSON the cost is recomputed from.
|
|
522
|
+
*/
|
|
523
|
+
export function verifyActionReceiptWithRates(receipt_bytes: Uint8Array, rate_card_json: string): MetricsVerdict;
|
|
524
|
+
|
|
270
525
|
/**
|
|
271
526
|
* Verify a serialized approval token and return its decoded claims.
|
|
272
527
|
*
|
|
@@ -292,6 +547,20 @@ export function verifyApprovalToken(token: Uint8Array, action_canonical: Uint8Ar
|
|
|
292
547
|
*/
|
|
293
548
|
export function verifyChain(receipts_bytes: Uint8Array): ChainResult;
|
|
294
549
|
|
|
550
|
+
/**
|
|
551
|
+
* REJECT-MORE-ONLY. Verify a detached commitment-envelope signature in the
|
|
552
|
+
* browser — the recipient independently confirms a commitment the same way the
|
|
553
|
+
* cloud does.
|
|
554
|
+
*
|
|
555
|
+
* Parses `envelope_bytes` as a `CommitmentEnvelope`, re-canonicalizes VIA THE
|
|
556
|
+
* KERNEL, `verify_strict`-checks the detached Ed25519 signature under
|
|
557
|
+
* `COMMITMENT_SIGNING_DOMAIN`, and confirms the recomputed commitment
|
|
558
|
+
* fingerprint (`blake3(pubkey)`) equals `claimed_signer_fpr`. Produces ZERO new
|
|
559
|
+
* canonical/signed bytes. Never throws — every outcome is a kind-tagged
|
|
560
|
+
* [`CommitmentVerdict`].
|
|
561
|
+
*/
|
|
562
|
+
export function verifyCommitment(envelope_bytes: Uint8Array, operator_pubkey_b64: string, detached_sig_b64: string, claimed_signer_fpr: string): CommitmentVerdict;
|
|
563
|
+
|
|
295
564
|
/**
|
|
296
565
|
* RFC-6962 consistency proof verification.
|
|
297
566
|
*
|
|
@@ -329,6 +598,31 @@ export function verifyDelegation(wire: Uint8Array, registered_operator_key: Uint
|
|
|
329
598
|
*/
|
|
330
599
|
export function verifyInclusion(leaf_value_hex: string, index: number, size: number, root_hex: string, proof_hashes_json: string): boolean;
|
|
331
600
|
|
|
601
|
+
/**
|
|
602
|
+
* Verify a parsed C2SP signed-note checkpoint against a PINNED Ed25519 log
|
|
603
|
+
* public key (base64, raw 32 bytes). Returns `true` iff at least one signature
|
|
604
|
+
* line is from the pinned key AND `verify_strict`s over the note text.
|
|
605
|
+
*
|
|
606
|
+
* The pinned key is supplied by the caller (trusted out of band, CT-style) — a
|
|
607
|
+
* note signed by any non-pinned key returns `false`. Throws `[NOTE]` if the
|
|
608
|
+
* note is malformed or `[KEY]` if the pubkey is not base64 of 32 bytes.
|
|
609
|
+
*/
|
|
610
|
+
export function verifyNoteAgainstKey(note: string, log_pubkey_b64: string): boolean;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Verify a single commit-and-reveal field reveal against its signed redaction
|
|
614
|
+
* marker — recompute `BLAKE3(salt ++ field_path ++ value)` and check equality
|
|
615
|
+
* with `marker.commitment`. The browser/offline counterpart to the Node
|
|
616
|
+
* `verifyRevealJs`: the missing half that lets a web auditor reveal-and-prove a
|
|
617
|
+
* redacted field with only the receipt + the customer-supplied sidecar.
|
|
618
|
+
*
|
|
619
|
+
* `reveal_json` — a `FieldReveal`: `{ field_path, salt_hex, value_json }`.
|
|
620
|
+
* `marker_json` — the matching `RedactionMarker` from the signed receipt.
|
|
621
|
+
*
|
|
622
|
+
* Returns `true` iff the reveal recomputes the marker's commitment.
|
|
623
|
+
*/
|
|
624
|
+
export function verifyReveal(reveal_json: string, marker_json: string): boolean;
|
|
625
|
+
|
|
332
626
|
/**
|
|
333
627
|
* Verify a session chain (lifecycle role + transition checks).
|
|
334
628
|
*/
|
|
@@ -347,68 +641,118 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
347
641
|
export interface InitOutput {
|
|
348
642
|
readonly memory: WebAssembly.Memory;
|
|
349
643
|
readonly __wbg_actionverdict_free: (a: number, b: number) => void;
|
|
350
|
-
readonly __wbg_get_actionverdict_verdict: (a: number) =>
|
|
644
|
+
readonly __wbg_get_actionverdict_verdict: (a: number, b: number) => void;
|
|
351
645
|
readonly __wbg_set_actionverdict_verdict: (a: number, b: number, c: number) => void;
|
|
352
|
-
readonly __wbg_get_actionverdict_trust_level: (a: number) =>
|
|
646
|
+
readonly __wbg_get_actionverdict_trust_level: (a: number, b: number) => void;
|
|
353
647
|
readonly __wbg_set_actionverdict_trust_level: (a: number, b: number, c: number) => void;
|
|
354
648
|
readonly __wbg_chainresult_free: (a: number, b: number) => void;
|
|
355
649
|
readonly __wbg_get_chainresult_ok: (a: number) => number;
|
|
356
650
|
readonly __wbg_set_chainresult_ok: (a: number, b: number) => void;
|
|
357
651
|
readonly __wbg_get_chainresult_length: (a: number) => number;
|
|
358
652
|
readonly __wbg_set_chainresult_length: (a: number, b: number) => void;
|
|
359
|
-
readonly __wbg_get_chainresult_error: (a: number) =>
|
|
653
|
+
readonly __wbg_get_chainresult_error: (a: number, b: number) => void;
|
|
360
654
|
readonly __wbg_set_chainresult_error: (a: number, b: number, c: number) => void;
|
|
361
655
|
readonly __wbg_get_chainresult_seq: (a: number) => number;
|
|
362
656
|
readonly __wbg_set_chainresult_seq: (a: number, b: number) => void;
|
|
363
|
-
readonly __wbg_get_chainresult_detail: (a: number) =>
|
|
657
|
+
readonly __wbg_get_chainresult_detail: (a: number, b: number) => void;
|
|
364
658
|
readonly __wbg_set_chainresult_detail: (a: number, b: number, c: number) => void;
|
|
365
659
|
readonly __wbg_approvaltokenclaims_free: (a: number, b: number) => void;
|
|
366
|
-
readonly __wbg_get_approvaltokenclaims_nonce: (a: number) =>
|
|
367
|
-
readonly __wbg_set_approvaltokenclaims_nonce: (a: number, b:
|
|
368
|
-
readonly __wbg_get_approvaltokenclaims_expiry_unix_secs: (a: number) =>
|
|
369
|
-
readonly __wbg_set_approvaltokenclaims_expiry_unix_secs: (a: number, b:
|
|
370
|
-
readonly
|
|
371
|
-
readonly __wbg_get_approvaltokenclaims_scope: (a: number) => [number, number];
|
|
372
|
-
readonly __wbg_get_approvaltokenclaims_approver_public_key: (a: number) => [number, number];
|
|
660
|
+
readonly __wbg_get_approvaltokenclaims_nonce: (a: number) => number;
|
|
661
|
+
readonly __wbg_set_approvaltokenclaims_nonce: (a: number, b: number) => void;
|
|
662
|
+
readonly __wbg_get_approvaltokenclaims_expiry_unix_secs: (a: number) => number;
|
|
663
|
+
readonly __wbg_set_approvaltokenclaims_expiry_unix_secs: (a: number, b: number) => void;
|
|
664
|
+
readonly __wbg_get_approvaltokenclaims_approver_public_key: (a: number, b: number) => void;
|
|
373
665
|
readonly __wbg_set_approvaltokenclaims_approver_public_key: (a: number, b: number, c: number) => void;
|
|
374
666
|
readonly __wbg_verifieddelegation_free: (a: number, b: number) => void;
|
|
375
|
-
readonly __wbg_get_verifieddelegation_authorized_key: (a: number) =>
|
|
376
|
-
readonly __wbg_set_verifieddelegation_authorized_key: (a: number, b:
|
|
377
|
-
readonly
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
381
|
-
readonly __wbg_get_verifieddelegation_not_before_unix_secs: (a: number) => any;
|
|
382
|
-
readonly __wbg_set_verifieddelegation_not_before_unix_secs: (a: number, b: any) => void;
|
|
667
|
+
readonly __wbg_get_verifieddelegation_authorized_key: (a: number) => number;
|
|
668
|
+
readonly __wbg_set_verifieddelegation_authorized_key: (a: number, b: number) => void;
|
|
669
|
+
readonly __wbg_get_verifieddelegation_expiry_unix_secs: (a: number) => number;
|
|
670
|
+
readonly __wbg_set_verifieddelegation_expiry_unix_secs: (a: number, b: number) => void;
|
|
671
|
+
readonly __wbg_get_verifieddelegation_not_before_unix_secs: (a: number) => number;
|
|
672
|
+
readonly __wbg_set_verifieddelegation_not_before_unix_secs: (a: number, b: number) => void;
|
|
383
673
|
readonly verifyActionReceipt: (a: number, b: number) => number;
|
|
384
|
-
readonly actionCanonicalBytes: (a: number, b: number
|
|
385
|
-
readonly l1CosignPayload: (a: number, b: number, c: number, d: number
|
|
386
|
-
readonly quorumCosignPayload: (a: number, b: number, c: number, d: number, e: number, f: number, g: number
|
|
387
|
-
readonly contentHash: (a: number, b: number
|
|
388
|
-
readonly anchoredContentHash: (a: number, b: number
|
|
389
|
-
readonly shortHash: (a: number, b: number, c: number, d: number
|
|
390
|
-
readonly chainHashHex: (a: number, b: number, c: number, d: number
|
|
391
|
-
readonly verifyApprovalToken: (a: number, b: number, c: number, d: number, e:
|
|
392
|
-
readonly
|
|
393
|
-
readonly
|
|
394
|
-
readonly
|
|
395
|
-
readonly
|
|
396
|
-
readonly
|
|
397
|
-
readonly
|
|
398
|
-
readonly
|
|
399
|
-
readonly
|
|
400
|
-
readonly
|
|
401
|
-
readonly
|
|
674
|
+
readonly actionCanonicalBytes: (a: number, b: number, c: number) => void;
|
|
675
|
+
readonly l1CosignPayload: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
676
|
+
readonly quorumCosignPayload: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
677
|
+
readonly contentHash: (a: number, b: number, c: number) => void;
|
|
678
|
+
readonly anchoredContentHash: (a: number, b: number, c: number) => void;
|
|
679
|
+
readonly shortHash: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
680
|
+
readonly chainHashHex: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
681
|
+
readonly verifyApprovalToken: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
682
|
+
readonly approvalTokenPayload: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
683
|
+
readonly approvalTokenFrame: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
684
|
+
readonly verifyDelegation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
685
|
+
readonly verifyCommitment: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
686
|
+
readonly commitmentEnvelopeCanonicalBytes: (a: number, b: number, c: number) => void;
|
|
687
|
+
readonly commitmentFingerprint: (a: number, b: number, c: number) => void;
|
|
688
|
+
readonly parseSignedNote: (a: number, b: number, c: number) => void;
|
|
689
|
+
readonly verifyNoteAgainstKey: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
690
|
+
readonly topLeafValue: (a: number, b: number, c: number, d: bigint, e: number, f: number) => void;
|
|
691
|
+
readonly verifyChain: (a: number, b: number, c: number) => void;
|
|
692
|
+
readonly verifySessionChain: (a: number, b: number, c: number) => void;
|
|
693
|
+
readonly verifySessionChainWithRotation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
694
|
+
readonly verifyInclusion: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
695
|
+
readonly verifyConsistency: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
696
|
+
readonly verifyReveal: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
697
|
+
readonly parsePolicy: (a: number, b: number, c: number) => void;
|
|
698
|
+
readonly ruleToSentence: (a: number, b: number, c: number) => void;
|
|
699
|
+
readonly policyRulesFromToml: (a: number, b: number, c: number) => void;
|
|
700
|
+
readonly validateNoFloorBypass: (a: number, b: number, c: number) => void;
|
|
701
|
+
readonly __wbg_metricsverdict_free: (a: number, b: number) => void;
|
|
702
|
+
readonly __wbg_get_metricsverdict_verdict: (a: number, b: number) => void;
|
|
703
|
+
readonly __wbg_set_metricsverdict_verdict: (a: number, b: number, c: number) => void;
|
|
704
|
+
readonly __wbg_get_metricsverdict_trust_level: (a: number, b: number) => void;
|
|
705
|
+
readonly __wbg_set_metricsverdict_trust_level: (a: number, b: number, c: number) => void;
|
|
706
|
+
readonly __wbg_get_metricsverdict_has_metrics: (a: number) => number;
|
|
707
|
+
readonly __wbg_set_metricsverdict_has_metrics: (a: number, b: number) => void;
|
|
708
|
+
readonly __wbg_get_metricsverdict_duration_ms: (a: number) => number;
|
|
709
|
+
readonly __wbg_set_metricsverdict_duration_ms: (a: number, b: number) => void;
|
|
710
|
+
readonly __wbg_get_metricsverdict_status: (a: number, b: number) => void;
|
|
711
|
+
readonly __wbg_set_metricsverdict_status: (a: number, b: number, c: number) => void;
|
|
712
|
+
readonly __wbg_get_metricsverdict_status_code: (a: number) => number;
|
|
713
|
+
readonly __wbg_set_metricsverdict_status_code: (a: number, b: number) => void;
|
|
714
|
+
readonly __wbg_get_metricsverdict_tokens_in: (a: number) => number;
|
|
715
|
+
readonly __wbg_set_metricsverdict_tokens_in: (a: number, b: number) => void;
|
|
716
|
+
readonly __wbg_get_metricsverdict_tokens_out: (a: number) => number;
|
|
717
|
+
readonly __wbg_set_metricsverdict_tokens_out: (a: number, b: number) => void;
|
|
718
|
+
readonly __wbg_get_metricsverdict_token_source: (a: number, b: number) => void;
|
|
719
|
+
readonly __wbg_set_metricsverdict_token_source: (a: number, b: number, c: number) => void;
|
|
720
|
+
readonly __wbg_get_metricsverdict_bytes_in: (a: number) => number;
|
|
721
|
+
readonly __wbg_set_metricsverdict_bytes_in: (a: number, b: number) => void;
|
|
722
|
+
readonly __wbg_get_metricsverdict_bytes_out: (a: number) => number;
|
|
723
|
+
readonly __wbg_set_metricsverdict_bytes_out: (a: number, b: number) => void;
|
|
724
|
+
readonly __wbg_get_metricsverdict_retries: (a: number) => number;
|
|
725
|
+
readonly __wbg_set_metricsverdict_retries: (a: number, b: number) => void;
|
|
726
|
+
readonly __wbg_get_metricsverdict_rate_card_id: (a: number, b: number) => void;
|
|
727
|
+
readonly __wbg_set_metricsverdict_rate_card_id: (a: number, b: number, c: number) => void;
|
|
728
|
+
readonly __wbg_get_metricsverdict_model_key: (a: number, b: number) => void;
|
|
729
|
+
readonly __wbg_set_metricsverdict_model_key: (a: number, b: number, c: number) => void;
|
|
730
|
+
readonly __wbg_get_metricsverdict_recomputed_cost_micros: (a: number, b: number) => void;
|
|
731
|
+
readonly __wbg_set_metricsverdict_recomputed_cost_micros: (a: number, b: number, c: bigint) => void;
|
|
732
|
+
readonly __wbg_get_metricsverdict_cost_display: (a: number, b: number) => void;
|
|
733
|
+
readonly __wbg_set_metricsverdict_cost_display: (a: number, b: number, c: number) => void;
|
|
734
|
+
readonly __wbg_get_metricsverdict_priced: (a: number) => number;
|
|
735
|
+
readonly __wbg_set_metricsverdict_priced: (a: number, b: number) => void;
|
|
736
|
+
readonly __wbg_get_metricsverdict_card_id_matches: (a: number) => number;
|
|
737
|
+
readonly __wbg_set_metricsverdict_card_id_matches: (a: number, b: number) => void;
|
|
738
|
+
readonly verifyActionReceiptWithRates: (a: number, b: number, c: number, d: number) => number;
|
|
402
739
|
readonly __wbg_set_approvaltokenclaims_decision: (a: number, b: number, c: number) => void;
|
|
403
740
|
readonly __wbg_set_approvaltokenclaims_scope: (a: number, b: number, c: number) => void;
|
|
404
741
|
readonly __wbg_set_verifieddelegation_sub: (a: number, b: number, c: number) => void;
|
|
405
742
|
readonly __wbg_set_verifieddelegation_scope: (a: number, b: number, c: number) => void;
|
|
406
|
-
readonly
|
|
407
|
-
readonly
|
|
408
|
-
readonly
|
|
409
|
-
readonly
|
|
410
|
-
readonly
|
|
411
|
-
readonly
|
|
743
|
+
readonly __wbg_set_commitmentverdict_verdict: (a: number, b: number, c: number) => void;
|
|
744
|
+
readonly __wbg_set_commitmentverdict_signer_fpr: (a: number, b: number, c: number) => void;
|
|
745
|
+
readonly __wbg_commitmentverdict_free: (a: number, b: number) => void;
|
|
746
|
+
readonly __wbg_get_approvaltokenclaims_decision: (a: number, b: number) => void;
|
|
747
|
+
readonly __wbg_get_approvaltokenclaims_scope: (a: number, b: number) => void;
|
|
748
|
+
readonly __wbg_get_verifieddelegation_sub: (a: number, b: number) => void;
|
|
749
|
+
readonly __wbg_get_verifieddelegation_scope: (a: number, b: number) => void;
|
|
750
|
+
readonly __wbg_get_commitmentverdict_verdict: (a: number, b: number) => void;
|
|
751
|
+
readonly __wbg_get_commitmentverdict_signer_fpr: (a: number, b: number) => void;
|
|
752
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
753
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
754
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
755
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
412
756
|
}
|
|
413
757
|
|
|
414
758
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|