@vouch-protocol-official/core-wasm 2.0.0 → 2.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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Ramprasad Anandam Gaddam"
6
6
  ],
7
7
  "description": "Vouch Protocol canonical core (WASM): JCS canonicalization, Ed25519, did:key/multikey, Data Integrity (eddsa-jcs-2022), credentials, delegation, dual-proof ML-DSA-44, and BitstringStatusList revocation. One byte-exact Rust implementation shared across every Vouch SDK.",
8
- "version": "2.0.0",
8
+ "version": "2.2.0",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,6 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ /**
5
+ * Build an unsigned AuthorityState credential. Pass null/undefined for the
6
+ * optional subjectDid, which defaults to the issuer. Returns the credential as
7
+ * a JSON string.
8
+ */
9
+ export function buildAuthorityState(issuer_did: string, credential_id: string, authority_epoch: number, status: string, valid_from: string, valid_until: string, subject_did?: string | null): string;
10
+
4
11
  /**
5
12
  * Build a delegation link. Pass null/undefined for the optional validFrom,
6
13
  * validUntil, parentProofValue. Returns the link as a JSON string.
@@ -26,6 +33,13 @@ export function ed25519Verify(public_b64: string, message_b64: string, signature
26
33
 
27
34
  export function encodeEd25519Multikey(public_b64: string): string;
28
35
 
36
+ /**
37
+ * Evaluate the Authority Freshness gate for an action. Pass null/undefined for
38
+ * an unknown epoch, an unknown status, or an unevaluated live co-sign. Returns
39
+ * {allow, tier, reason}, where reason is the shared cross-language reason code.
40
+ */
41
+ export function evaluateAuthorityFreshness(tier: string, voucher_epoch?: number | null, last_seen_epoch?: number | null, current_status?: string | null, live_cosign_ok?: boolean | null): string;
42
+
29
43
  /**
30
44
  * Generate an Ed25519 key pair. Returns {seed_b64, public_b64, multikey, did_key}.
31
45
  */
@@ -40,6 +54,63 @@ export function mldsa44Sign(secret_b64: string, public_b64: string, message_b64:
40
54
 
41
55
  export function mldsa44Verify(public_b64: string, message_b64: string, signature_b64: string): boolean;
42
56
 
57
+ /**
58
+ * Read credentialSubject.authorityEpoch without verifying the proof.
59
+ */
60
+ export function readAuthorityEpoch(credential_json: string): number;
61
+
62
+ /**
63
+ * Read credentialSubject.status without verifying the proof.
64
+ */
65
+ export function readAuthorityStatus(credential_json: string): string;
66
+
67
+ /**
68
+ * Multibase SHA-256 of an evidence artifact (JSON object or string).
69
+ */
70
+ export function reasoningArtifactDigest(artifact_json: string): string;
71
+
72
+ /**
73
+ * Build a justification from an intent object, an anchors array, and an optional
74
+ * commitment level. Returns the justification as a JSON string.
75
+ */
76
+ export function reasoningBuildJustification(intent_json: string, anchors_json: string, commitment_level?: number | null): string;
77
+
78
+ /**
79
+ * Verify a ReasonedActionCredential. Returns null on success, else the stable
80
+ * reason string. Pass null for escrow_public_b64 when no escrow is required.
81
+ */
82
+ export function reasoningCheckReasonedAction(credential_json: string, public_b64: string, escrow_public_b64: string | null | undefined, require_escrow: boolean): string | undefined;
83
+
84
+ /**
85
+ * Multibase SHA-256 over the JCS-canonical justification.
86
+ */
87
+ export function reasoningJustificationDigest(justification_json: string): string;
88
+
89
+ /**
90
+ * Classify an execution time against the pulse schedule. Returns
91
+ * {in_window, in_gap, seconds_into_window} as a JSON string.
92
+ */
93
+ export function reasoningPulseWindow(last_pulse: string, interval_seconds: number, exec_time: string): string;
94
+
95
+ /**
96
+ * Execution-time reseal: seal the intent at `now` and issue a fresh
97
+ * ReasonedActionCredential whose sealedAt and validFrom are both `now`.
98
+ */
99
+ export function reasoningResealIntent(seed_b64: string, issuer_did: string, verification_method: string, intent_json: string, anchors_json: string, commitment_level: number | null | undefined, now: string, credential_id: string, include_reasoning: boolean): string;
100
+
101
+ /**
102
+ * Sign a ReasonedActionCredential. Pass null for the optional sealed_at and
103
+ * escrow_receipt_json. Returns the signed credential as a JSON string.
104
+ */
105
+ export function reasoningSignReasonedAction(seed_b64: string, issuer_did: string, verification_method: string, intent_json: string, justification_json: string, valid_from: string, credential_id: string, include_reasoning: boolean, sealed_at?: string | null, escrow_receipt_json?: string | null): string;
106
+
107
+ /**
108
+ * Verify intent freshness for a credential at a consequence tier, using the
109
+ * reference tier policy. Returns null when accepted, else the stable reason
110
+ * string (e.g. "intent_seal_stale:...").
111
+ */
112
+ export function reasoningVerifyIntentFreshness(credential_json: string, tier: number, last_pulse: string): string | undefined;
113
+
43
114
  export function roboticsAttachStatus(credential_json: string, signer_seed_b64: string, params_json: string): string;
44
115
 
45
116
  export function roboticsAttenuateForWear(params_json: string): string;
@@ -66,6 +137,10 @@ export function roboticsBuildConfirm(signer_seed_b64: string, from_did: string,
66
137
 
67
138
  export function roboticsBuildConformanceAttestation(signer_seed_b64: string, params_json: string): string;
68
139
 
140
+ export function roboticsBuildConsentEvidence(robot_seed_b64: string, params_json: string): string;
141
+
142
+ export function roboticsBuildConsentToken(bystander_seed_b64: string, params_json: string): string;
143
+
69
144
  export function roboticsBuildDecommission(signer_seed_b64: string, params_json: string): string;
70
145
 
71
146
  export function roboticsBuildEmbodiment(agent_seed_b64: string, params_json: string): string;
@@ -92,6 +167,8 @@ export function roboticsBuildPerception(robot_seed_b64: string, params_json: str
92
167
 
93
168
  export function roboticsBuildProvenance(signer_seed_b64: string, params_json: string): string;
94
169
 
170
+ export function roboticsBuildSafetyEvidence(signer_seed_b64: string, params_json: string): string;
171
+
95
172
  export function roboticsBuildSafetyRecord(signer_seed_b64: string, params_json: string): string;
96
173
 
97
174
  export function roboticsBuildScope(signer_seed_b64: string, params_json: string): string;
@@ -118,6 +195,8 @@ export function roboticsFusionInputsDigest(params_json: string): string;
118
195
 
119
196
  export function roboticsGenesisPrevHash(): string;
120
197
 
198
+ export function roboticsHashCapture(capture_b64: string): string;
199
+
121
200
  export function roboticsHashFrame(frame_b64: string): string;
122
201
 
123
202
  export function roboticsHashFusedOutput(output_b64: string): string;
@@ -162,6 +241,10 @@ export function roboticsVerifyConfirm(confirm_json: string, confirm_public_b64:
162
241
 
163
242
  export function roboticsVerifyConformanceAttestation(credential_json: string, public_b64: string): string;
164
243
 
244
+ export function roboticsVerifyConsentEvidence(params_json: string, robot_public_b64: string): string;
245
+
246
+ export function roboticsVerifyConsentToken(params_json: string, bystander_public_b64: string): string;
247
+
165
248
  export function roboticsVerifyContinuityChain(params_json: string, agent_public_b64: string): string;
166
249
 
167
250
  export function roboticsVerifyCustodyChain(params_json: string): string;
@@ -215,6 +298,8 @@ export function roboticsVerifyProvenance(attestation_json: string, public_b64: s
215
298
  */
216
299
  export function roboticsVerifyRobotCredential(credential_json: string, ed25519_public_b64: string, mldsa44_public_b64?: string | null): boolean;
217
300
 
301
+ export function roboticsVerifySafetyEvidence(credential_json: string, robot_public_b64: string, entries_json: string): string;
302
+
218
303
  export function roboticsVerifySafetyLog(entries_json: string, genesis_prev_hash?: string | null): string;
219
304
 
220
305
  export function roboticsVerifySafetyRecord(credential_json: string, public_b64: string): string;
@@ -225,6 +310,11 @@ export function roboticsVerifyWearChain(params_json: string, public_b64: string)
225
310
 
226
311
  export function sign(credential_json: string, seed_b64: string, verification_method: string, created: string): string;
227
312
 
313
+ /**
314
+ * Build and sign an AuthorityState credential in one step (eddsa-jcs-2022).
315
+ */
316
+ export function signAuthorityState(issuer_did: string, credential_id: string, authority_epoch: number, status: string, valid_from: string, valid_until: string, subject_did: string | null | undefined, seed_b64: string, verification_method: string, created: string): string;
317
+
228
318
  /**
229
319
  * Build a dual proof (Ed25519 + ML-DSA-44) and attach it to the credential.
230
320
  */
@@ -261,8 +351,20 @@ export function thresholdGenerateKey(min_signers: number, max_signers: number):
261
351
  */
262
352
  export function thresholdSignShare(message_b64: string, key_share_json: string, nonces_b64: string, commitments_json: string): string;
263
353
 
354
+ /**
355
+ * v1.7 capability-attenuation chain validation. Infallible JSON boundary:
356
+ * returns a `{"valid": bool, ...}` verdict string (see core::attenuation).
357
+ */
358
+ export function validateDelegationChain(request_json: string): string;
359
+
264
360
  export function verify(credential_json: string, public_b64: string, now_iso: string, clock_skew_seconds: number): string;
265
361
 
362
+ /**
363
+ * Verify an AuthorityState credential's proof and validity window.
364
+ * Returns {proofValid, timeValid, valid}.
365
+ */
366
+ export function verifyAuthorityState(credential_json: string, public_b64: string, now_iso: string, clock_skew_seconds: number): string;
367
+
266
368
  /**
267
369
  * Validate the time-bound rule over a delegation chain (JSON array of links).
268
370
  */
@@ -285,6 +387,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
285
387
 
286
388
  export interface InitOutput {
287
389
  readonly memory: WebAssembly.Memory;
390
+ readonly buildAuthorityState: (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;
288
391
  readonly buildDelegationLink: (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) => void;
289
392
  readonly buildProof: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
290
393
  readonly canonicalize: (a: number, b: number, c: number) => void;
@@ -294,10 +397,21 @@ export interface InitOutput {
294
397
  readonly ed25519Sign: (a: number, b: number, c: number, d: number, e: number) => void;
295
398
  readonly ed25519Verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
296
399
  readonly encodeEd25519Multikey: (a: number, b: number, c: number) => void;
400
+ readonly evaluateAuthorityFreshness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
297
401
  readonly generateEd25519: (a: number) => void;
298
402
  readonly generateMldsa44: (a: number) => void;
299
403
  readonly mldsa44Sign: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
300
404
  readonly mldsa44Verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
405
+ readonly readAuthorityEpoch: (a: number, b: number, c: number) => void;
406
+ readonly readAuthorityStatus: (a: number, b: number, c: number) => void;
407
+ readonly reasoningArtifactDigest: (a: number, b: number, c: number) => void;
408
+ readonly reasoningBuildJustification: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
409
+ readonly reasoningCheckReasonedAction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
410
+ readonly reasoningJustificationDigest: (a: number, b: number, c: number) => void;
411
+ readonly reasoningPulseWindow: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
412
+ readonly reasoningResealIntent: (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, o: number, p: number, q: number) => void;
413
+ readonly reasoningSignReasonedAction: (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, o: number, p: number, q: number, r: number, s: number, t: number) => void;
414
+ readonly reasoningVerifyIntentFreshness: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
301
415
  readonly roboticsAttachStatus: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
302
416
  readonly roboticsAttenuateForWear: (a: number, b: number, c: number) => void;
303
417
  readonly roboticsAttenuates: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -311,6 +425,8 @@ export interface InitOutput {
311
425
  readonly roboticsBuildActionApproval: (a: number, b: number, c: number, d: number, e: number) => void;
312
426
  readonly roboticsBuildConfirm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
313
427
  readonly roboticsBuildConformanceAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
428
+ readonly roboticsBuildConsentEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
429
+ readonly roboticsBuildConsentToken: (a: number, b: number, c: number, d: number, e: number) => void;
314
430
  readonly roboticsBuildDecommission: (a: number, b: number, c: number, d: number, e: number) => void;
315
431
  readonly roboticsBuildEmbodiment: (a: number, b: number, c: number, d: number, e: number) => void;
316
432
  readonly roboticsBuildFusedAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -324,6 +440,7 @@ export interface InitOutput {
324
440
  readonly roboticsBuildPassport: (a: number, b: number, c: number, d: number, e: number) => void;
325
441
  readonly roboticsBuildPerception: (a: number, b: number, c: number, d: number, e: number) => void;
326
442
  readonly roboticsBuildProvenance: (a: number, b: number, c: number, d: number, e: number) => void;
443
+ readonly roboticsBuildSafetyEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
327
444
  readonly roboticsBuildSafetyRecord: (a: number, b: number, c: number, d: number, e: number) => void;
328
445
  readonly roboticsBuildScope: (a: number, b: number, c: number, d: number, e: number) => void;
329
446
  readonly roboticsBuildStatusEntry: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number) => void;
@@ -337,6 +454,7 @@ export interface InitOutput {
337
454
  readonly roboticsEncodePassport: (a: number, b: number, c: number) => void;
338
455
  readonly roboticsFusionInputsDigest: (a: number, b: number, c: number) => void;
339
456
  readonly roboticsGenesisPrevHash: (a: number) => void;
457
+ readonly roboticsHashCapture: (a: number, b: number, c: number) => void;
340
458
  readonly roboticsHashFrame: (a: number, b: number, c: number) => void;
341
459
  readonly roboticsHashFusedOutput: (a: number, b: number, c: number) => void;
342
460
  readonly roboticsHolderAt: (a: number, b: number, c: number) => void;
@@ -359,6 +477,8 @@ export interface InitOutput {
359
477
  readonly roboticsVerifyChain: (a: number, b: number, c: number, d: number, e: number) => void;
360
478
  readonly roboticsVerifyConfirm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
361
479
  readonly roboticsVerifyConformanceAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
480
+ readonly roboticsVerifyConsentEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
481
+ readonly roboticsVerifyConsentToken: (a: number, b: number, c: number, d: number, e: number) => void;
362
482
  readonly roboticsVerifyContinuityChain: (a: number, b: number, c: number, d: number, e: number) => void;
363
483
  readonly roboticsVerifyCustodyChain: (a: number, b: number, c: number) => void;
364
484
  readonly roboticsVerifyDecommission: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -381,17 +501,21 @@ export interface InitOutput {
381
501
  readonly roboticsVerifyPq: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
382
502
  readonly roboticsVerifyProvenance: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
383
503
  readonly roboticsVerifyRobotCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
504
+ readonly roboticsVerifySafetyEvidence: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
384
505
  readonly roboticsVerifySafetyLog: (a: number, b: number, c: number, d: number, e: number) => void;
385
506
  readonly roboticsVerifySafetyRecord: (a: number, b: number, c: number, d: number, e: number) => void;
386
507
  readonly roboticsVerifyWearAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
387
508
  readonly roboticsVerifyWearChain: (a: number, b: number, c: number, d: number, e: number) => void;
388
509
  readonly sign: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
510
+ readonly signAuthorityState: (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, o: number, p: number, q: number, r: number, s: number, t: number) => void;
389
511
  readonly signDual: (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, o: number) => void;
390
512
  readonly thresholdAggregate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
391
513
  readonly thresholdCommit: (a: number, b: number, c: number) => void;
392
514
  readonly thresholdGenerateKey: (a: number, b: number, c: number) => void;
393
515
  readonly thresholdSignShare: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
516
+ readonly validateDelegationChain: (a: number, b: number, c: number) => void;
394
517
  readonly verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
518
+ readonly verifyAuthorityState: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
395
519
  readonly verifyChainTimeBound: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
396
520
  readonly verifyComposite: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
397
521
  readonly verifyDual: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -1,5 +1,55 @@
1
1
  /* @ts-self-types="./vouch_core_wasm.d.ts" */
2
2
 
3
+ /**
4
+ * Build an unsigned AuthorityState credential. Pass null/undefined for the
5
+ * optional subjectDid, which defaults to the issuer. Returns the credential as
6
+ * a JSON string.
7
+ * @param {string} issuer_did
8
+ * @param {string} credential_id
9
+ * @param {number} authority_epoch
10
+ * @param {string} status
11
+ * @param {string} valid_from
12
+ * @param {string} valid_until
13
+ * @param {string | null} [subject_did]
14
+ * @returns {string}
15
+ */
16
+ export function buildAuthorityState(issuer_did, credential_id, authority_epoch, status, valid_from, valid_until, subject_did) {
17
+ let deferred8_0;
18
+ let deferred8_1;
19
+ try {
20
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21
+ const ptr0 = passStringToWasm0(issuer_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
22
+ const len0 = WASM_VECTOR_LEN;
23
+ const ptr1 = passStringToWasm0(credential_id, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
24
+ const len1 = WASM_VECTOR_LEN;
25
+ const ptr2 = passStringToWasm0(status, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
26
+ const len2 = WASM_VECTOR_LEN;
27
+ const ptr3 = passStringToWasm0(valid_from, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
28
+ const len3 = WASM_VECTOR_LEN;
29
+ const ptr4 = passStringToWasm0(valid_until, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
30
+ const len4 = WASM_VECTOR_LEN;
31
+ var ptr5 = isLikeNone(subject_did) ? 0 : passStringToWasm0(subject_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
32
+ var len5 = WASM_VECTOR_LEN;
33
+ wasm.buildAuthorityState(retptr, ptr0, len0, ptr1, len1, authority_epoch, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
34
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
35
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
36
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
37
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
38
+ var ptr7 = r0;
39
+ var len7 = r1;
40
+ if (r3) {
41
+ ptr7 = 0; len7 = 0;
42
+ throw takeObject(r2);
43
+ }
44
+ deferred8_0 = ptr7;
45
+ deferred8_1 = len7;
46
+ return getStringFromWasm0(ptr7, len7);
47
+ } finally {
48
+ wasm.__wbindgen_add_to_stack_pointer(16);
49
+ wasm.__wbindgen_export4(deferred8_0, deferred8_1, 1);
50
+ }
51
+ }
52
+
3
53
  /**
4
54
  * Build a delegation link. Pass null/undefined for the optional validFrom,
5
55
  * validUntil, parentProofValue. Returns the link as a JSON string.
@@ -306,6 +356,38 @@ export function encodeEd25519Multikey(public_b64) {
306
356
  }
307
357
  }
308
358
 
359
+ /**
360
+ * Evaluate the Authority Freshness gate for an action. Pass null/undefined for
361
+ * an unknown epoch, an unknown status, or an unevaluated live co-sign. Returns
362
+ * {allow, tier, reason}, where reason is the shared cross-language reason code.
363
+ * @param {string} tier
364
+ * @param {number | null} [voucher_epoch]
365
+ * @param {number | null} [last_seen_epoch]
366
+ * @param {string | null} [current_status]
367
+ * @param {boolean | null} [live_cosign_ok]
368
+ * @returns {string}
369
+ */
370
+ export function evaluateAuthorityFreshness(tier, voucher_epoch, last_seen_epoch, current_status, live_cosign_ok) {
371
+ let deferred3_0;
372
+ let deferred3_1;
373
+ try {
374
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
375
+ const ptr0 = passStringToWasm0(tier, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
376
+ const len0 = WASM_VECTOR_LEN;
377
+ var ptr1 = isLikeNone(current_status) ? 0 : passStringToWasm0(current_status, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
378
+ var len1 = WASM_VECTOR_LEN;
379
+ wasm.evaluateAuthorityFreshness(retptr, ptr0, len0, isLikeNone(voucher_epoch) ? Number.MAX_SAFE_INTEGER : (voucher_epoch) >> 0, isLikeNone(last_seen_epoch) ? Number.MAX_SAFE_INTEGER : (last_seen_epoch) >> 0, ptr1, len1, isLikeNone(live_cosign_ok) ? 0xFFFFFF : live_cosign_ok ? 1 : 0);
380
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
381
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
382
+ deferred3_0 = r0;
383
+ deferred3_1 = r1;
384
+ return getStringFromWasm0(r0, r1);
385
+ } finally {
386
+ wasm.__wbindgen_add_to_stack_pointer(16);
387
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
388
+ }
389
+ }
390
+
309
391
  /**
310
392
  * Generate an Ed25519 key pair. Returns {seed_b64, public_b64, multikey, did_key}.
311
393
  * @returns {string}
@@ -429,6 +511,382 @@ export function mldsa44Verify(public_b64, message_b64, signature_b64) {
429
511
  }
430
512
  }
431
513
 
514
+ /**
515
+ * Read credentialSubject.authorityEpoch without verifying the proof.
516
+ * @param {string} credential_json
517
+ * @returns {number}
518
+ */
519
+ export function readAuthorityEpoch(credential_json) {
520
+ try {
521
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
522
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
523
+ const len0 = WASM_VECTOR_LEN;
524
+ wasm.readAuthorityEpoch(retptr, ptr0, len0);
525
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
526
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
527
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
528
+ if (r2) {
529
+ throw takeObject(r1);
530
+ }
531
+ return r0;
532
+ } finally {
533
+ wasm.__wbindgen_add_to_stack_pointer(16);
534
+ }
535
+ }
536
+
537
+ /**
538
+ * Read credentialSubject.status without verifying the proof.
539
+ * @param {string} credential_json
540
+ * @returns {string}
541
+ */
542
+ export function readAuthorityStatus(credential_json) {
543
+ let deferred3_0;
544
+ let deferred3_1;
545
+ try {
546
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
547
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
548
+ const len0 = WASM_VECTOR_LEN;
549
+ wasm.readAuthorityStatus(retptr, ptr0, len0);
550
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
551
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
552
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
553
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
554
+ var ptr2 = r0;
555
+ var len2 = r1;
556
+ if (r3) {
557
+ ptr2 = 0; len2 = 0;
558
+ throw takeObject(r2);
559
+ }
560
+ deferred3_0 = ptr2;
561
+ deferred3_1 = len2;
562
+ return getStringFromWasm0(ptr2, len2);
563
+ } finally {
564
+ wasm.__wbindgen_add_to_stack_pointer(16);
565
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
566
+ }
567
+ }
568
+
569
+ /**
570
+ * Multibase SHA-256 of an evidence artifact (JSON object or string).
571
+ * @param {string} artifact_json
572
+ * @returns {string}
573
+ */
574
+ export function reasoningArtifactDigest(artifact_json) {
575
+ let deferred3_0;
576
+ let deferred3_1;
577
+ try {
578
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
579
+ const ptr0 = passStringToWasm0(artifact_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
580
+ const len0 = WASM_VECTOR_LEN;
581
+ wasm.reasoningArtifactDigest(retptr, ptr0, len0);
582
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
583
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
584
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
585
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
586
+ var ptr2 = r0;
587
+ var len2 = r1;
588
+ if (r3) {
589
+ ptr2 = 0; len2 = 0;
590
+ throw takeObject(r2);
591
+ }
592
+ deferred3_0 = ptr2;
593
+ deferred3_1 = len2;
594
+ return getStringFromWasm0(ptr2, len2);
595
+ } finally {
596
+ wasm.__wbindgen_add_to_stack_pointer(16);
597
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
598
+ }
599
+ }
600
+
601
+ /**
602
+ * Build a justification from an intent object, an anchors array, and an optional
603
+ * commitment level. Returns the justification as a JSON string.
604
+ * @param {string} intent_json
605
+ * @param {string} anchors_json
606
+ * @param {number | null} [commitment_level]
607
+ * @returns {string}
608
+ */
609
+ export function reasoningBuildJustification(intent_json, anchors_json, commitment_level) {
610
+ let deferred4_0;
611
+ let deferred4_1;
612
+ try {
613
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
614
+ const ptr0 = passStringToWasm0(intent_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
615
+ const len0 = WASM_VECTOR_LEN;
616
+ const ptr1 = passStringToWasm0(anchors_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
617
+ const len1 = WASM_VECTOR_LEN;
618
+ wasm.reasoningBuildJustification(retptr, ptr0, len0, ptr1, len1, isLikeNone(commitment_level) ? Number.MAX_SAFE_INTEGER : (commitment_level) >> 0);
619
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
620
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
621
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
622
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
623
+ var ptr3 = r0;
624
+ var len3 = r1;
625
+ if (r3) {
626
+ ptr3 = 0; len3 = 0;
627
+ throw takeObject(r2);
628
+ }
629
+ deferred4_0 = ptr3;
630
+ deferred4_1 = len3;
631
+ return getStringFromWasm0(ptr3, len3);
632
+ } finally {
633
+ wasm.__wbindgen_add_to_stack_pointer(16);
634
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
635
+ }
636
+ }
637
+
638
+ /**
639
+ * Verify a ReasonedActionCredential. Returns null on success, else the stable
640
+ * reason string. Pass null for escrow_public_b64 when no escrow is required.
641
+ * @param {string} credential_json
642
+ * @param {string} public_b64
643
+ * @param {string | null | undefined} escrow_public_b64
644
+ * @param {boolean} require_escrow
645
+ * @returns {string | undefined}
646
+ */
647
+ export function reasoningCheckReasonedAction(credential_json, public_b64, escrow_public_b64, require_escrow) {
648
+ try {
649
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
650
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
651
+ const len0 = WASM_VECTOR_LEN;
652
+ const ptr1 = passStringToWasm0(public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
653
+ const len1 = WASM_VECTOR_LEN;
654
+ var ptr2 = isLikeNone(escrow_public_b64) ? 0 : passStringToWasm0(escrow_public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
655
+ var len2 = WASM_VECTOR_LEN;
656
+ wasm.reasoningCheckReasonedAction(retptr, ptr0, len0, ptr1, len1, ptr2, len2, require_escrow);
657
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
658
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
659
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
660
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
661
+ if (r3) {
662
+ throw takeObject(r2);
663
+ }
664
+ let v4;
665
+ if (r0 !== 0) {
666
+ v4 = getStringFromWasm0(r0, r1).slice();
667
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
668
+ }
669
+ return v4;
670
+ } finally {
671
+ wasm.__wbindgen_add_to_stack_pointer(16);
672
+ }
673
+ }
674
+
675
+ /**
676
+ * Multibase SHA-256 over the JCS-canonical justification.
677
+ * @param {string} justification_json
678
+ * @returns {string}
679
+ */
680
+ export function reasoningJustificationDigest(justification_json) {
681
+ let deferred3_0;
682
+ let deferred3_1;
683
+ try {
684
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
685
+ const ptr0 = passStringToWasm0(justification_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
686
+ const len0 = WASM_VECTOR_LEN;
687
+ wasm.reasoningJustificationDigest(retptr, ptr0, len0);
688
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
689
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
690
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
691
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
692
+ var ptr2 = r0;
693
+ var len2 = r1;
694
+ if (r3) {
695
+ ptr2 = 0; len2 = 0;
696
+ throw takeObject(r2);
697
+ }
698
+ deferred3_0 = ptr2;
699
+ deferred3_1 = len2;
700
+ return getStringFromWasm0(ptr2, len2);
701
+ } finally {
702
+ wasm.__wbindgen_add_to_stack_pointer(16);
703
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
704
+ }
705
+ }
706
+
707
+ /**
708
+ * Classify an execution time against the pulse schedule. Returns
709
+ * {in_window, in_gap, seconds_into_window} as a JSON string.
710
+ * @param {string} last_pulse
711
+ * @param {number} interval_seconds
712
+ * @param {string} exec_time
713
+ * @returns {string}
714
+ */
715
+ export function reasoningPulseWindow(last_pulse, interval_seconds, exec_time) {
716
+ let deferred4_0;
717
+ let deferred4_1;
718
+ try {
719
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
720
+ const ptr0 = passStringToWasm0(last_pulse, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
721
+ const len0 = WASM_VECTOR_LEN;
722
+ const ptr1 = passStringToWasm0(exec_time, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
723
+ const len1 = WASM_VECTOR_LEN;
724
+ wasm.reasoningPulseWindow(retptr, ptr0, len0, interval_seconds, ptr1, len1);
725
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
726
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
727
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
728
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
729
+ var ptr3 = r0;
730
+ var len3 = r1;
731
+ if (r3) {
732
+ ptr3 = 0; len3 = 0;
733
+ throw takeObject(r2);
734
+ }
735
+ deferred4_0 = ptr3;
736
+ deferred4_1 = len3;
737
+ return getStringFromWasm0(ptr3, len3);
738
+ } finally {
739
+ wasm.__wbindgen_add_to_stack_pointer(16);
740
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
741
+ }
742
+ }
743
+
744
+ /**
745
+ * Execution-time reseal: seal the intent at `now` and issue a fresh
746
+ * ReasonedActionCredential whose sealedAt and validFrom are both `now`.
747
+ * @param {string} seed_b64
748
+ * @param {string} issuer_did
749
+ * @param {string} verification_method
750
+ * @param {string} intent_json
751
+ * @param {string} anchors_json
752
+ * @param {number | null | undefined} commitment_level
753
+ * @param {string} now
754
+ * @param {string} credential_id
755
+ * @param {boolean} include_reasoning
756
+ * @returns {string}
757
+ */
758
+ export function reasoningResealIntent(seed_b64, issuer_did, verification_method, intent_json, anchors_json, commitment_level, now, credential_id, include_reasoning) {
759
+ let deferred9_0;
760
+ let deferred9_1;
761
+ try {
762
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
763
+ const ptr0 = passStringToWasm0(seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
764
+ const len0 = WASM_VECTOR_LEN;
765
+ const ptr1 = passStringToWasm0(issuer_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
766
+ const len1 = WASM_VECTOR_LEN;
767
+ const ptr2 = passStringToWasm0(verification_method, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
768
+ const len2 = WASM_VECTOR_LEN;
769
+ const ptr3 = passStringToWasm0(intent_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
770
+ const len3 = WASM_VECTOR_LEN;
771
+ const ptr4 = passStringToWasm0(anchors_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
772
+ const len4 = WASM_VECTOR_LEN;
773
+ const ptr5 = passStringToWasm0(now, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
774
+ const len5 = WASM_VECTOR_LEN;
775
+ const ptr6 = passStringToWasm0(credential_id, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
776
+ const len6 = WASM_VECTOR_LEN;
777
+ wasm.reasoningResealIntent(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(commitment_level) ? Number.MAX_SAFE_INTEGER : (commitment_level) >> 0, ptr5, len5, ptr6, len6, include_reasoning);
778
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
779
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
780
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
781
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
782
+ var ptr8 = r0;
783
+ var len8 = r1;
784
+ if (r3) {
785
+ ptr8 = 0; len8 = 0;
786
+ throw takeObject(r2);
787
+ }
788
+ deferred9_0 = ptr8;
789
+ deferred9_1 = len8;
790
+ return getStringFromWasm0(ptr8, len8);
791
+ } finally {
792
+ wasm.__wbindgen_add_to_stack_pointer(16);
793
+ wasm.__wbindgen_export4(deferred9_0, deferred9_1, 1);
794
+ }
795
+ }
796
+
797
+ /**
798
+ * Sign a ReasonedActionCredential. Pass null for the optional sealed_at and
799
+ * escrow_receipt_json. Returns the signed credential as a JSON string.
800
+ * @param {string} seed_b64
801
+ * @param {string} issuer_did
802
+ * @param {string} verification_method
803
+ * @param {string} intent_json
804
+ * @param {string} justification_json
805
+ * @param {string} valid_from
806
+ * @param {string} credential_id
807
+ * @param {boolean} include_reasoning
808
+ * @param {string | null} [sealed_at]
809
+ * @param {string | null} [escrow_receipt_json]
810
+ * @returns {string}
811
+ */
812
+ export function reasoningSignReasonedAction(seed_b64, issuer_did, verification_method, intent_json, justification_json, valid_from, credential_id, include_reasoning, sealed_at, escrow_receipt_json) {
813
+ let deferred11_0;
814
+ let deferred11_1;
815
+ try {
816
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
817
+ const ptr0 = passStringToWasm0(seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
818
+ const len0 = WASM_VECTOR_LEN;
819
+ const ptr1 = passStringToWasm0(issuer_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
820
+ const len1 = WASM_VECTOR_LEN;
821
+ const ptr2 = passStringToWasm0(verification_method, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
822
+ const len2 = WASM_VECTOR_LEN;
823
+ const ptr3 = passStringToWasm0(intent_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
824
+ const len3 = WASM_VECTOR_LEN;
825
+ const ptr4 = passStringToWasm0(justification_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
826
+ const len4 = WASM_VECTOR_LEN;
827
+ const ptr5 = passStringToWasm0(valid_from, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
828
+ const len5 = WASM_VECTOR_LEN;
829
+ const ptr6 = passStringToWasm0(credential_id, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
830
+ const len6 = WASM_VECTOR_LEN;
831
+ var ptr7 = isLikeNone(sealed_at) ? 0 : passStringToWasm0(sealed_at, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
832
+ var len7 = WASM_VECTOR_LEN;
833
+ var ptr8 = isLikeNone(escrow_receipt_json) ? 0 : passStringToWasm0(escrow_receipt_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
834
+ var len8 = WASM_VECTOR_LEN;
835
+ wasm.reasoningSignReasonedAction(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, include_reasoning, ptr7, len7, ptr8, len8);
836
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
837
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
838
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
839
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
840
+ var ptr10 = r0;
841
+ var len10 = r1;
842
+ if (r3) {
843
+ ptr10 = 0; len10 = 0;
844
+ throw takeObject(r2);
845
+ }
846
+ deferred11_0 = ptr10;
847
+ deferred11_1 = len10;
848
+ return getStringFromWasm0(ptr10, len10);
849
+ } finally {
850
+ wasm.__wbindgen_add_to_stack_pointer(16);
851
+ wasm.__wbindgen_export4(deferred11_0, deferred11_1, 1);
852
+ }
853
+ }
854
+
855
+ /**
856
+ * Verify intent freshness for a credential at a consequence tier, using the
857
+ * reference tier policy. Returns null when accepted, else the stable reason
858
+ * string (e.g. "intent_seal_stale:...").
859
+ * @param {string} credential_json
860
+ * @param {number} tier
861
+ * @param {string} last_pulse
862
+ * @returns {string | undefined}
863
+ */
864
+ export function reasoningVerifyIntentFreshness(credential_json, tier, last_pulse) {
865
+ try {
866
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
867
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
868
+ const len0 = WASM_VECTOR_LEN;
869
+ const ptr1 = passStringToWasm0(last_pulse, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
870
+ const len1 = WASM_VECTOR_LEN;
871
+ wasm.reasoningVerifyIntentFreshness(retptr, ptr0, len0, tier, ptr1, len1);
872
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
873
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
874
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
875
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
876
+ if (r3) {
877
+ throw takeObject(r2);
878
+ }
879
+ let v3;
880
+ if (r0 !== 0) {
881
+ v3 = getStringFromWasm0(r0, r1).slice();
882
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
883
+ }
884
+ return v3;
885
+ } finally {
886
+ wasm.__wbindgen_add_to_stack_pointer(16);
887
+ }
888
+ }
889
+
432
890
  /**
433
891
  * @param {string} credential_json
434
892
  * @param {string} signer_seed_b64
@@ -838,36 +1296,104 @@ export function roboticsBuildConfirm(signer_seed_b64, from_did, session_json, cr
838
1296
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
839
1297
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
840
1298
  var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
841
- var ptr5 = r0;
842
- var len5 = r1;
1299
+ var ptr5 = r0;
1300
+ var len5 = r1;
1301
+ if (r3) {
1302
+ ptr5 = 0; len5 = 0;
1303
+ throw takeObject(r2);
1304
+ }
1305
+ deferred6_0 = ptr5;
1306
+ deferred6_1 = len5;
1307
+ return getStringFromWasm0(ptr5, len5);
1308
+ } finally {
1309
+ wasm.__wbindgen_add_to_stack_pointer(16);
1310
+ wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
1311
+ }
1312
+ }
1313
+
1314
+ /**
1315
+ * @param {string} signer_seed_b64
1316
+ * @param {string} params_json
1317
+ * @returns {string}
1318
+ */
1319
+ export function roboticsBuildConformanceAttestation(signer_seed_b64, params_json) {
1320
+ let deferred4_0;
1321
+ let deferred4_1;
1322
+ try {
1323
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1324
+ const ptr0 = passStringToWasm0(signer_seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1325
+ const len0 = WASM_VECTOR_LEN;
1326
+ const ptr1 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1327
+ const len1 = WASM_VECTOR_LEN;
1328
+ wasm.roboticsBuildConformanceAttestation(retptr, ptr0, len0, ptr1, len1);
1329
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1330
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1331
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1332
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1333
+ var ptr3 = r0;
1334
+ var len3 = r1;
1335
+ if (r3) {
1336
+ ptr3 = 0; len3 = 0;
1337
+ throw takeObject(r2);
1338
+ }
1339
+ deferred4_0 = ptr3;
1340
+ deferred4_1 = len3;
1341
+ return getStringFromWasm0(ptr3, len3);
1342
+ } finally {
1343
+ wasm.__wbindgen_add_to_stack_pointer(16);
1344
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
1345
+ }
1346
+ }
1347
+
1348
+ /**
1349
+ * @param {string} robot_seed_b64
1350
+ * @param {string} params_json
1351
+ * @returns {string}
1352
+ */
1353
+ export function roboticsBuildConsentEvidence(robot_seed_b64, params_json) {
1354
+ let deferred4_0;
1355
+ let deferred4_1;
1356
+ try {
1357
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1358
+ const ptr0 = passStringToWasm0(robot_seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1359
+ const len0 = WASM_VECTOR_LEN;
1360
+ const ptr1 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1361
+ const len1 = WASM_VECTOR_LEN;
1362
+ wasm.roboticsBuildConsentEvidence(retptr, ptr0, len0, ptr1, len1);
1363
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1364
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1365
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1366
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1367
+ var ptr3 = r0;
1368
+ var len3 = r1;
843
1369
  if (r3) {
844
- ptr5 = 0; len5 = 0;
1370
+ ptr3 = 0; len3 = 0;
845
1371
  throw takeObject(r2);
846
1372
  }
847
- deferred6_0 = ptr5;
848
- deferred6_1 = len5;
849
- return getStringFromWasm0(ptr5, len5);
1373
+ deferred4_0 = ptr3;
1374
+ deferred4_1 = len3;
1375
+ return getStringFromWasm0(ptr3, len3);
850
1376
  } finally {
851
1377
  wasm.__wbindgen_add_to_stack_pointer(16);
852
- wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
1378
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
853
1379
  }
854
1380
  }
855
1381
 
856
1382
  /**
857
- * @param {string} signer_seed_b64
1383
+ * @param {string} bystander_seed_b64
858
1384
  * @param {string} params_json
859
1385
  * @returns {string}
860
1386
  */
861
- export function roboticsBuildConformanceAttestation(signer_seed_b64, params_json) {
1387
+ export function roboticsBuildConsentToken(bystander_seed_b64, params_json) {
862
1388
  let deferred4_0;
863
1389
  let deferred4_1;
864
1390
  try {
865
1391
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
866
- const ptr0 = passStringToWasm0(signer_seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1392
+ const ptr0 = passStringToWasm0(bystander_seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
867
1393
  const len0 = WASM_VECTOR_LEN;
868
1394
  const ptr1 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
869
1395
  const len1 = WASM_VECTOR_LEN;
870
- wasm.roboticsBuildConformanceAttestation(retptr, ptr0, len0, ptr1, len1);
1396
+ wasm.roboticsBuildConsentToken(retptr, ptr0, len0, ptr1, len1);
871
1397
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
872
1398
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
873
1399
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1329,6 +1855,40 @@ export function roboticsBuildProvenance(signer_seed_b64, params_json) {
1329
1855
  }
1330
1856
  }
1331
1857
 
1858
+ /**
1859
+ * @param {string} signer_seed_b64
1860
+ * @param {string} params_json
1861
+ * @returns {string}
1862
+ */
1863
+ export function roboticsBuildSafetyEvidence(signer_seed_b64, params_json) {
1864
+ let deferred4_0;
1865
+ let deferred4_1;
1866
+ try {
1867
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1868
+ const ptr0 = passStringToWasm0(signer_seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1869
+ const len0 = WASM_VECTOR_LEN;
1870
+ const ptr1 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
1871
+ const len1 = WASM_VECTOR_LEN;
1872
+ wasm.roboticsBuildSafetyEvidence(retptr, ptr0, len0, ptr1, len1);
1873
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1874
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1875
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1876
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
1877
+ var ptr3 = r0;
1878
+ var len3 = r1;
1879
+ if (r3) {
1880
+ ptr3 = 0; len3 = 0;
1881
+ throw takeObject(r2);
1882
+ }
1883
+ deferred4_0 = ptr3;
1884
+ deferred4_1 = len3;
1885
+ return getStringFromWasm0(ptr3, len3);
1886
+ } finally {
1887
+ wasm.__wbindgen_add_to_stack_pointer(16);
1888
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
1889
+ }
1890
+ }
1891
+
1332
1892
  /**
1333
1893
  * @param {string} signer_seed_b64
1334
1894
  * @param {string} params_json
@@ -1740,6 +2300,37 @@ export function roboticsGenesisPrevHash() {
1740
2300
  }
1741
2301
  }
1742
2302
 
2303
+ /**
2304
+ * @param {string} capture_b64
2305
+ * @returns {string}
2306
+ */
2307
+ export function roboticsHashCapture(capture_b64) {
2308
+ let deferred3_0;
2309
+ let deferred3_1;
2310
+ try {
2311
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2312
+ const ptr0 = passStringToWasm0(capture_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
2313
+ const len0 = WASM_VECTOR_LEN;
2314
+ wasm.roboticsHashCapture(retptr, ptr0, len0);
2315
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2316
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2317
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2318
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
2319
+ var ptr2 = r0;
2320
+ var len2 = r1;
2321
+ if (r3) {
2322
+ ptr2 = 0; len2 = 0;
2323
+ throw takeObject(r2);
2324
+ }
2325
+ deferred3_0 = ptr2;
2326
+ deferred3_1 = len2;
2327
+ return getStringFromWasm0(ptr2, len2);
2328
+ } finally {
2329
+ wasm.__wbindgen_add_to_stack_pointer(16);
2330
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
2331
+ }
2332
+ }
2333
+
1743
2334
  /**
1744
2335
  * @param {string} frame_b64
1745
2336
  * @returns {string}
@@ -2439,6 +3030,74 @@ export function roboticsVerifyConformanceAttestation(credential_json, public_b64
2439
3030
  }
2440
3031
  }
2441
3032
 
3033
+ /**
3034
+ * @param {string} params_json
3035
+ * @param {string} robot_public_b64
3036
+ * @returns {string}
3037
+ */
3038
+ export function roboticsVerifyConsentEvidence(params_json, robot_public_b64) {
3039
+ let deferred4_0;
3040
+ let deferred4_1;
3041
+ try {
3042
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3043
+ const ptr0 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3044
+ const len0 = WASM_VECTOR_LEN;
3045
+ const ptr1 = passStringToWasm0(robot_public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3046
+ const len1 = WASM_VECTOR_LEN;
3047
+ wasm.roboticsVerifyConsentEvidence(retptr, ptr0, len0, ptr1, len1);
3048
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3049
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3050
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
3051
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
3052
+ var ptr3 = r0;
3053
+ var len3 = r1;
3054
+ if (r3) {
3055
+ ptr3 = 0; len3 = 0;
3056
+ throw takeObject(r2);
3057
+ }
3058
+ deferred4_0 = ptr3;
3059
+ deferred4_1 = len3;
3060
+ return getStringFromWasm0(ptr3, len3);
3061
+ } finally {
3062
+ wasm.__wbindgen_add_to_stack_pointer(16);
3063
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3064
+ }
3065
+ }
3066
+
3067
+ /**
3068
+ * @param {string} params_json
3069
+ * @param {string} bystander_public_b64
3070
+ * @returns {string}
3071
+ */
3072
+ export function roboticsVerifyConsentToken(params_json, bystander_public_b64) {
3073
+ let deferred4_0;
3074
+ let deferred4_1;
3075
+ try {
3076
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3077
+ const ptr0 = passStringToWasm0(params_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3078
+ const len0 = WASM_VECTOR_LEN;
3079
+ const ptr1 = passStringToWasm0(bystander_public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3080
+ const len1 = WASM_VECTOR_LEN;
3081
+ wasm.roboticsVerifyConsentToken(retptr, ptr0, len0, ptr1, len1);
3082
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3083
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3084
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
3085
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
3086
+ var ptr3 = r0;
3087
+ var len3 = r1;
3088
+ if (r3) {
3089
+ ptr3 = 0; len3 = 0;
3090
+ throw takeObject(r2);
3091
+ }
3092
+ deferred4_0 = ptr3;
3093
+ deferred4_1 = len3;
3094
+ return getStringFromWasm0(ptr3, len3);
3095
+ } finally {
3096
+ wasm.__wbindgen_add_to_stack_pointer(16);
3097
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3098
+ }
3099
+ }
3100
+
2442
3101
  /**
2443
3102
  * @param {string} params_json
2444
3103
  * @param {string} agent_public_b64
@@ -3195,6 +3854,43 @@ export function roboticsVerifyRobotCredential(credential_json, ed25519_public_b6
3195
3854
  }
3196
3855
  }
3197
3856
 
3857
+ /**
3858
+ * @param {string} credential_json
3859
+ * @param {string} robot_public_b64
3860
+ * @param {string} entries_json
3861
+ * @returns {string}
3862
+ */
3863
+ export function roboticsVerifySafetyEvidence(credential_json, robot_public_b64, entries_json) {
3864
+ let deferred5_0;
3865
+ let deferred5_1;
3866
+ try {
3867
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3868
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3869
+ const len0 = WASM_VECTOR_LEN;
3870
+ const ptr1 = passStringToWasm0(robot_public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3871
+ const len1 = WASM_VECTOR_LEN;
3872
+ const ptr2 = passStringToWasm0(entries_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3873
+ const len2 = WASM_VECTOR_LEN;
3874
+ wasm.roboticsVerifySafetyEvidence(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3875
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3876
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3877
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
3878
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
3879
+ var ptr4 = r0;
3880
+ var len4 = r1;
3881
+ if (r3) {
3882
+ ptr4 = 0; len4 = 0;
3883
+ throw takeObject(r2);
3884
+ }
3885
+ deferred5_0 = ptr4;
3886
+ deferred5_1 = len4;
3887
+ return getStringFromWasm0(ptr4, len4);
3888
+ } finally {
3889
+ wasm.__wbindgen_add_to_stack_pointer(16);
3890
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
3891
+ }
3892
+ }
3893
+
3198
3894
  /**
3199
3895
  * @param {string} entries_json
3200
3896
  * @param {string | null} [genesis_prev_hash]
@@ -3371,6 +4067,63 @@ export function sign(credential_json, seed_b64, verification_method, created) {
3371
4067
  }
3372
4068
  }
3373
4069
 
4070
+ /**
4071
+ * Build and sign an AuthorityState credential in one step (eddsa-jcs-2022).
4072
+ * @param {string} issuer_did
4073
+ * @param {string} credential_id
4074
+ * @param {number} authority_epoch
4075
+ * @param {string} status
4076
+ * @param {string} valid_from
4077
+ * @param {string} valid_until
4078
+ * @param {string | null | undefined} subject_did
4079
+ * @param {string} seed_b64
4080
+ * @param {string} verification_method
4081
+ * @param {string} created
4082
+ * @returns {string}
4083
+ */
4084
+ export function signAuthorityState(issuer_did, credential_id, authority_epoch, status, valid_from, valid_until, subject_did, seed_b64, verification_method, created) {
4085
+ let deferred11_0;
4086
+ let deferred11_1;
4087
+ try {
4088
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4089
+ const ptr0 = passStringToWasm0(issuer_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4090
+ const len0 = WASM_VECTOR_LEN;
4091
+ const ptr1 = passStringToWasm0(credential_id, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4092
+ const len1 = WASM_VECTOR_LEN;
4093
+ const ptr2 = passStringToWasm0(status, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4094
+ const len2 = WASM_VECTOR_LEN;
4095
+ const ptr3 = passStringToWasm0(valid_from, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4096
+ const len3 = WASM_VECTOR_LEN;
4097
+ const ptr4 = passStringToWasm0(valid_until, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4098
+ const len4 = WASM_VECTOR_LEN;
4099
+ var ptr5 = isLikeNone(subject_did) ? 0 : passStringToWasm0(subject_did, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4100
+ var len5 = WASM_VECTOR_LEN;
4101
+ const ptr6 = passStringToWasm0(seed_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4102
+ const len6 = WASM_VECTOR_LEN;
4103
+ const ptr7 = passStringToWasm0(verification_method, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4104
+ const len7 = WASM_VECTOR_LEN;
4105
+ const ptr8 = passStringToWasm0(created, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4106
+ const len8 = WASM_VECTOR_LEN;
4107
+ wasm.signAuthorityState(retptr, ptr0, len0, ptr1, len1, authority_epoch, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8);
4108
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4109
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4110
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4111
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4112
+ var ptr10 = r0;
4113
+ var len10 = r1;
4114
+ if (r3) {
4115
+ ptr10 = 0; len10 = 0;
4116
+ throw takeObject(r2);
4117
+ }
4118
+ deferred11_0 = ptr10;
4119
+ deferred11_1 = len10;
4120
+ return getStringFromWasm0(ptr10, len10);
4121
+ } finally {
4122
+ wasm.__wbindgen_add_to_stack_pointer(16);
4123
+ wasm.__wbindgen_export4(deferred11_0, deferred11_1, 1);
4124
+ }
4125
+ }
4126
+
3374
4127
  /**
3375
4128
  * Build a dual proof (Ed25519 + ML-DSA-44) and attach it to the credential.
3376
4129
  * @param {string} credential_json
@@ -3577,6 +4330,31 @@ export function thresholdSignShare(message_b64, key_share_json, nonces_b64, comm
3577
4330
  }
3578
4331
  }
3579
4332
 
4333
+ /**
4334
+ * v1.7 capability-attenuation chain validation. Infallible JSON boundary:
4335
+ * returns a `{"valid": bool, ...}` verdict string (see core::attenuation).
4336
+ * @param {string} request_json
4337
+ * @returns {string}
4338
+ */
4339
+ export function validateDelegationChain(request_json) {
4340
+ let deferred2_0;
4341
+ let deferred2_1;
4342
+ try {
4343
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4344
+ const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4345
+ const len0 = WASM_VECTOR_LEN;
4346
+ wasm.validateDelegationChain(retptr, ptr0, len0);
4347
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4348
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4349
+ deferred2_0 = r0;
4350
+ deferred2_1 = r1;
4351
+ return getStringFromWasm0(r0, r1);
4352
+ } finally {
4353
+ wasm.__wbindgen_add_to_stack_pointer(16);
4354
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
4355
+ }
4356
+ }
4357
+
3580
4358
  /**
3581
4359
  * @param {string} credential_json
3582
4360
  * @param {string} public_b64
@@ -3615,6 +4393,46 @@ export function verify(credential_json, public_b64, now_iso, clock_skew_seconds)
3615
4393
  }
3616
4394
  }
3617
4395
 
4396
+ /**
4397
+ * Verify an AuthorityState credential's proof and validity window.
4398
+ * Returns {proofValid, timeValid, valid}.
4399
+ * @param {string} credential_json
4400
+ * @param {string} public_b64
4401
+ * @param {string} now_iso
4402
+ * @param {number} clock_skew_seconds
4403
+ * @returns {string}
4404
+ */
4405
+ export function verifyAuthorityState(credential_json, public_b64, now_iso, clock_skew_seconds) {
4406
+ let deferred5_0;
4407
+ let deferred5_1;
4408
+ try {
4409
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4410
+ const ptr0 = passStringToWasm0(credential_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4411
+ const len0 = WASM_VECTOR_LEN;
4412
+ const ptr1 = passStringToWasm0(public_b64, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4413
+ const len1 = WASM_VECTOR_LEN;
4414
+ const ptr2 = passStringToWasm0(now_iso, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4415
+ const len2 = WASM_VECTOR_LEN;
4416
+ wasm.verifyAuthorityState(retptr, ptr0, len0, ptr1, len1, ptr2, len2, clock_skew_seconds);
4417
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4418
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4419
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
4420
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
4421
+ var ptr4 = r0;
4422
+ var len4 = r1;
4423
+ if (r3) {
4424
+ ptr4 = 0; len4 = 0;
4425
+ throw takeObject(r2);
4426
+ }
4427
+ deferred5_0 = ptr4;
4428
+ deferred5_1 = len4;
4429
+ return getStringFromWasm0(ptr4, len4);
4430
+ } finally {
4431
+ wasm.__wbindgen_add_to_stack_pointer(16);
4432
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
4433
+ }
4434
+ }
4435
+
3618
4436
  /**
3619
4437
  * Validate the time-bound rule over a delegation chain (JSON array of links).
3620
4438
  * @param {string} chain_json
Binary file
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const buildAuthorityState: (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;
4
5
  export const buildDelegationLink: (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) => void;
5
6
  export const buildProof: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
6
7
  export const canonicalize: (a: number, b: number, c: number) => void;
@@ -10,10 +11,21 @@ export const ed25519FromDidKey: (a: number, b: number, c: number) => void;
10
11
  export const ed25519Sign: (a: number, b: number, c: number, d: number, e: number) => void;
11
12
  export const ed25519Verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
12
13
  export const encodeEd25519Multikey: (a: number, b: number, c: number) => void;
14
+ export const evaluateAuthorityFreshness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
13
15
  export const generateEd25519: (a: number) => void;
14
16
  export const generateMldsa44: (a: number) => void;
15
17
  export const mldsa44Sign: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
16
18
  export const mldsa44Verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
19
+ export const readAuthorityEpoch: (a: number, b: number, c: number) => void;
20
+ export const readAuthorityStatus: (a: number, b: number, c: number) => void;
21
+ export const reasoningArtifactDigest: (a: number, b: number, c: number) => void;
22
+ export const reasoningBuildJustification: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
+ export const reasoningCheckReasonedAction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
24
+ export const reasoningJustificationDigest: (a: number, b: number, c: number) => void;
25
+ export const reasoningPulseWindow: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
+ export const reasoningResealIntent: (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, o: number, p: number, q: number) => void;
27
+ export const reasoningSignReasonedAction: (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, o: number, p: number, q: number, r: number, s: number, t: number) => void;
28
+ export const reasoningVerifyIntentFreshness: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
17
29
  export const roboticsAttachStatus: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
18
30
  export const roboticsAttenuateForWear: (a: number, b: number, c: number) => void;
19
31
  export const roboticsAttenuates: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -27,6 +39,8 @@ export const roboticsBuildAccessRequest: (a: number, b: number, c: number, d: nu
27
39
  export const roboticsBuildActionApproval: (a: number, b: number, c: number, d: number, e: number) => void;
28
40
  export const roboticsBuildConfirm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
29
41
  export const roboticsBuildConformanceAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
42
+ export const roboticsBuildConsentEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
43
+ export const roboticsBuildConsentToken: (a: number, b: number, c: number, d: number, e: number) => void;
30
44
  export const roboticsBuildDecommission: (a: number, b: number, c: number, d: number, e: number) => void;
31
45
  export const roboticsBuildEmbodiment: (a: number, b: number, c: number, d: number, e: number) => void;
32
46
  export const roboticsBuildFusedAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -40,6 +54,7 @@ export const roboticsBuildOwnershipTransfer: (a: number, b: number, c: number, d
40
54
  export const roboticsBuildPassport: (a: number, b: number, c: number, d: number, e: number) => void;
41
55
  export const roboticsBuildPerception: (a: number, b: number, c: number, d: number, e: number) => void;
42
56
  export const roboticsBuildProvenance: (a: number, b: number, c: number, d: number, e: number) => void;
57
+ export const roboticsBuildSafetyEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
43
58
  export const roboticsBuildSafetyRecord: (a: number, b: number, c: number, d: number, e: number) => void;
44
59
  export const roboticsBuildScope: (a: number, b: number, c: number, d: number, e: number) => void;
45
60
  export const roboticsBuildStatusEntry: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number) => void;
@@ -53,6 +68,7 @@ export const roboticsDecodePassport: (a: number, b: number, c: number) => void;
53
68
  export const roboticsEncodePassport: (a: number, b: number, c: number) => void;
54
69
  export const roboticsFusionInputsDigest: (a: number, b: number, c: number) => void;
55
70
  export const roboticsGenesisPrevHash: (a: number) => void;
71
+ export const roboticsHashCapture: (a: number, b: number, c: number) => void;
56
72
  export const roboticsHashFrame: (a: number, b: number, c: number) => void;
57
73
  export const roboticsHashFusedOutput: (a: number, b: number, c: number) => void;
58
74
  export const roboticsHolderAt: (a: number, b: number, c: number) => void;
@@ -75,6 +91,8 @@ export const roboticsVerifyActionAuthorization: (a: number, b: number, c: number
75
91
  export const roboticsVerifyChain: (a: number, b: number, c: number, d: number, e: number) => void;
76
92
  export const roboticsVerifyConfirm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
77
93
  export const roboticsVerifyConformanceAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
94
+ export const roboticsVerifyConsentEvidence: (a: number, b: number, c: number, d: number, e: number) => void;
95
+ export const roboticsVerifyConsentToken: (a: number, b: number, c: number, d: number, e: number) => void;
78
96
  export const roboticsVerifyContinuityChain: (a: number, b: number, c: number, d: number, e: number) => void;
79
97
  export const roboticsVerifyCustodyChain: (a: number, b: number, c: number) => void;
80
98
  export const roboticsVerifyDecommission: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -97,17 +115,21 @@ export const roboticsVerifyPerceptionLog: (a: number, b: number, c: number, d: n
97
115
  export const roboticsVerifyPq: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
98
116
  export const roboticsVerifyProvenance: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
99
117
  export const roboticsVerifyRobotCredential: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
118
+ export const roboticsVerifySafetyEvidence: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
100
119
  export const roboticsVerifySafetyLog: (a: number, b: number, c: number, d: number, e: number) => void;
101
120
  export const roboticsVerifySafetyRecord: (a: number, b: number, c: number, d: number, e: number) => void;
102
121
  export const roboticsVerifyWearAttestation: (a: number, b: number, c: number, d: number, e: number) => void;
103
122
  export const roboticsVerifyWearChain: (a: number, b: number, c: number, d: number, e: number) => void;
104
123
  export const sign: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
124
+ export const signAuthorityState: (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, o: number, p: number, q: number, r: number, s: number, t: number) => void;
105
125
  export const signDual: (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, o: number) => void;
106
126
  export const thresholdAggregate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
107
127
  export const thresholdCommit: (a: number, b: number, c: number) => void;
108
128
  export const thresholdGenerateKey: (a: number, b: number, c: number) => void;
109
129
  export const thresholdSignShare: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
130
+ export const validateDelegationChain: (a: number, b: number, c: number) => void;
110
131
  export const verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
132
+ export const verifyAuthorityState: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
111
133
  export const verifyChainTimeBound: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
112
134
  export const verifyComposite: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
113
135
  export const verifyDual: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;