@t3foundry/tasra-sdk 0.0.0-stage → 0.3.1-next.1

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.
Files changed (322) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +94 -0
  4. package/README.md +137 -2
  5. package/SECURITY.md +115 -0
  6. package/dist/app/approvals.d.ts +50 -0
  7. package/dist/app/approvals.js +90 -0
  8. package/dist/app/authorization.d.ts +19 -0
  9. package/dist/app/authorization.js +20 -0
  10. package/dist/app/client.d.ts +231 -0
  11. package/dist/app/client.js +272 -0
  12. package/dist/app/creation.d.ts +73 -0
  13. package/dist/app/creation.js +77 -0
  14. package/dist/app/deployment.d.ts +36 -0
  15. package/dist/app/deployment.js +18 -0
  16. package/dist/app/identity.d.ts +211 -0
  17. package/dist/app/identity.js +287 -0
  18. package/dist/app/index.d.ts +22 -0
  19. package/dist/app/index.js +12 -0
  20. package/dist/app/manifest.d.ts +74 -0
  21. package/dist/app/manifest.js +120 -0
  22. package/dist/app/node.d.ts +30 -0
  23. package/dist/app/node.js +159 -0
  24. package/dist/app/ready-slot.d.ts +157 -0
  25. package/dist/app/ready-slot.js +199 -0
  26. package/dist/app/tasra-client.d.ts +125 -0
  27. package/dist/app/tasra-client.js +79 -0
  28. package/dist/app/viem.d.ts +10 -0
  29. package/dist/app/viem.js +32 -0
  30. package/dist/app/wallet.d.ts +126 -0
  31. package/dist/app/wallet.js +137 -0
  32. package/dist/auth/dpop.d.ts +86 -0
  33. package/dist/auth/dpop.js +142 -0
  34. package/dist/auth/holderProof.d.ts +102 -0
  35. package/dist/auth/holderProof.js +161 -0
  36. package/dist/auth/identityScope.d.ts +19 -0
  37. package/dist/auth/identityScope.js +82 -0
  38. package/dist/auth/index.d.ts +11 -0
  39. package/dist/auth/index.js +13 -0
  40. package/dist/auth/oid4vp.d.ts +230 -0
  41. package/dist/auth/oid4vp.js +780 -0
  42. package/dist/auth/rego/wasm/PINS.json +11 -0
  43. package/dist/auth/rego/wasm/keykeeper_rego_wasm.d.ts +76 -0
  44. package/dist/auth/rego/wasm/keykeeper_rego_wasm.js +379 -0
  45. package/dist/auth/rego/wasm/keykeeper_rego_wasm_bg.wasm +0 -0
  46. package/dist/auth/rego.d.ts +192 -0
  47. package/dist/auth/rego.js +492 -0
  48. package/dist/auth/verifier.d.ts +166 -0
  49. package/dist/auth/verifier.js +211 -0
  50. package/dist/chain/abis/accountantSetRegistry.d.ts +441 -0
  51. package/dist/chain/abis/accountantSetRegistry.js +574 -0
  52. package/dist/chain/abis/accountantSlashing.d.ts +2071 -0
  53. package/dist/chain/abis/accountantSlashing.js +2670 -0
  54. package/dist/chain/abis/bondingCurve.d.ts +398 -0
  55. package/dist/chain/abis/bondingCurve.js +521 -0
  56. package/dist/chain/abis/equivocationSlasher.d.ts +292 -0
  57. package/dist/chain/abis/equivocationSlasher.js +379 -0
  58. package/dist/chain/abis/fixedTasraPriceOracle.d.ts +52 -0
  59. package/dist/chain/abis/fixedTasraPriceOracle.js +72 -0
  60. package/dist/chain/abis/index.d.ts +12801 -0
  61. package/dist/chain/abis/index.js +64 -0
  62. package/dist/chain/abis/keeperShareRegistry.d.ts +519 -0
  63. package/dist/chain/abis/keeperShareRegistry.js +675 -0
  64. package/dist/chain/abis/keyRegistry.d.ts +2421 -0
  65. package/dist/chain/abis/keyRegistry.js +3114 -0
  66. package/dist/chain/abis/livenessRegistry.d.ts +402 -0
  67. package/dist/chain/abis/livenessRegistry.js +524 -0
  68. package/dist/chain/abis/mockEurc.d.ts +210 -0
  69. package/dist/chain/abis/mockEurc.js +276 -0
  70. package/dist/chain/abis/nodeRegistry.d.ts +1630 -0
  71. package/dist/chain/abis/nodeRegistry.js +2113 -0
  72. package/dist/chain/abis/platformExecutor.d.ts +328 -0
  73. package/dist/chain/abis/platformExecutor.js +429 -0
  74. package/dist/chain/abis/prevrandaoSaltBeacon.d.ts +16 -0
  75. package/dist/chain/abis/prevrandaoSaltBeacon.js +24 -0
  76. package/dist/chain/abis/serviceRegistry.d.ts +556 -0
  77. package/dist/chain/abis/serviceRegistry.js +719 -0
  78. package/dist/chain/abis/settlement.d.ts +1624 -0
  79. package/dist/chain/abis/settlement.js +2096 -0
  80. package/dist/chain/abis/tasraSwapRouter.d.ts +92 -0
  81. package/dist/chain/abis/tasraSwapRouter.js +122 -0
  82. package/dist/chain/abis/tasraToken.d.ts +455 -0
  83. package/dist/chain/abis/tasraToken.js +599 -0
  84. package/dist/chain/abis/tasraVestingVault.d.ts +165 -0
  85. package/dist/chain/abis/tasraVestingVault.js +215 -0
  86. package/dist/chain/abis/thresholdRandomBeacon.d.ts +378 -0
  87. package/dist/chain/abis/thresholdRandomBeacon.js +494 -0
  88. package/dist/chain/abis/treasury.d.ts +301 -0
  89. package/dist/chain/abis/treasury.js +390 -0
  90. package/dist/chain/abis/verifierSetRegistry.d.ts +445 -0
  91. package/dist/chain/abis/verifierSetRegistry.js +579 -0
  92. package/dist/chain/client.d.ts +212 -0
  93. package/dist/chain/client.js +576 -0
  94. package/dist/chain/commitmentRecovery.d.ts +21 -0
  95. package/dist/chain/commitmentRecovery.js +44 -0
  96. package/dist/chain/committeeClient.d.ts +102 -0
  97. package/dist/chain/committeeClient.js +137 -0
  98. package/dist/chain/deployments.d.ts +56 -0
  99. package/dist/chain/deployments.js +269 -0
  100. package/dist/chain/discovery.d.ts +49 -0
  101. package/dist/chain/discovery.js +107 -0
  102. package/dist/chain/events.d.ts +58 -0
  103. package/dist/chain/events.js +125 -0
  104. package/dist/chain/format.d.ts +25 -0
  105. package/dist/chain/format.js +51 -0
  106. package/dist/chain/index.d.ts +41 -0
  107. package/dist/chain/index.js +56 -0
  108. package/dist/chain/manifest.d.ts +165 -0
  109. package/dist/chain/manifest.js +132 -0
  110. package/dist/chain/network-profiles.json +75 -0
  111. package/dist/chain/networks.d.ts +73 -0
  112. package/dist/chain/networks.js +62 -0
  113. package/dist/chain/node.d.ts +44 -0
  114. package/dist/chain/node.js +176 -0
  115. package/dist/chain/offchain.d.ts +149 -0
  116. package/dist/chain/offchain.js +73 -0
  117. package/dist/chain/provisionRule.d.ts +164 -0
  118. package/dist/chain/provisionRule.js +212 -0
  119. package/dist/chain/registeredAgent.d.ts +64 -0
  120. package/dist/chain/registeredAgent.js +140 -0
  121. package/dist/chain/registeredOperation.d.ts +49 -0
  122. package/dist/chain/registeredOperation.js +136 -0
  123. package/dist/chain/registeredRelay.d.ts +206 -0
  124. package/dist/chain/registeredRelay.js +312 -0
  125. package/dist/chain/revertReason.d.ts +14 -0
  126. package/dist/chain/revertReason.js +62 -0
  127. package/dist/chain/ruleAmendment.d.ts +80 -0
  128. package/dist/chain/ruleAmendment.js +195 -0
  129. package/dist/chain/ruleAmendmentCore.d.ts +129 -0
  130. package/dist/chain/ruleAmendmentCore.js +152 -0
  131. package/dist/chain/ruleInput.d.ts +10 -0
  132. package/dist/chain/ruleInput.js +13 -0
  133. package/dist/chain/serviceIdentity.d.ts +176 -0
  134. package/dist/chain/serviceIdentity.js +237 -0
  135. package/dist/chain/serviceProfiles.d.ts +39 -0
  136. package/dist/chain/serviceProfiles.js +74 -0
  137. package/dist/chain/services.d.ts +141 -0
  138. package/dist/chain/services.js +79 -0
  139. package/dist/chain/slotClient.d.ts +55 -0
  140. package/dist/chain/slotClient.js +62 -0
  141. package/dist/chain/slotSeed.d.ts +31 -0
  142. package/dist/chain/slotSeed.js +98 -0
  143. package/dist/chain/write.d.ts +431 -0
  144. package/dist/chain/write.js +958 -0
  145. package/dist/client/client.d.ts +112 -0
  146. package/dist/client/client.js +111 -0
  147. package/dist/client/index.d.ts +3 -0
  148. package/dist/client/index.js +2 -0
  149. package/dist/client/session.d.ts +67 -0
  150. package/dist/client/session.js +238 -0
  151. package/dist/committee/client.d.ts +284 -0
  152. package/dist/committee/client.js +351 -0
  153. package/dist/committee/dual-sign.d.ts +110 -0
  154. package/dist/committee/dual-sign.js +202 -0
  155. package/dist/committee/ecdsa.d.ts +36 -0
  156. package/dist/committee/ecdsa.js +45 -0
  157. package/dist/committee/extraction.d.ts +82 -0
  158. package/dist/committee/extraction.js +96 -0
  159. package/dist/committee/index.d.ts +19 -0
  160. package/dist/committee/index.js +13 -0
  161. package/dist/committee/oauth.d.ts +51 -0
  162. package/dist/committee/oauth.js +90 -0
  163. package/dist/committee/receipts.d.ts +51 -0
  164. package/dist/committee/receipts.js +59 -0
  165. package/dist/committee/request.d.ts +264 -0
  166. package/dist/committee/request.js +305 -0
  167. package/dist/committee/token.d.ts +274 -0
  168. package/dist/committee/token.js +418 -0
  169. package/dist/crypto/constants.d.ts +10 -0
  170. package/dist/crypto/constants.js +32 -0
  171. package/dist/crypto/detect.d.ts +20 -0
  172. package/dist/crypto/detect.js +44 -0
  173. package/dist/crypto/envelope.d.ts +60 -0
  174. package/dist/crypto/envelope.js +243 -0
  175. package/dist/crypto/frost.d.ts +49 -0
  176. package/dist/crypto/frost.js +152 -0
  177. package/dist/crypto/hex.d.ts +7 -0
  178. package/dist/crypto/hex.js +24 -0
  179. package/dist/crypto/ibe-blob.d.ts +114 -0
  180. package/dist/crypto/ibe-blob.js +208 -0
  181. package/dist/crypto/ibe.d.ts +88 -0
  182. package/dist/crypto/ibe.js +262 -0
  183. package/dist/crypto/index.d.ts +12 -0
  184. package/dist/crypto/index.js +12 -0
  185. package/dist/crypto/kem.d.ts +55 -0
  186. package/dist/crypto/kem.js +241 -0
  187. package/dist/decryption/client.d.ts +64 -0
  188. package/dist/decryption/client.js +82 -0
  189. package/dist/decryption/index.d.ts +2 -0
  190. package/dist/decryption/index.js +2 -0
  191. package/dist/errors.d.ts +124 -0
  192. package/dist/errors.js +167 -0
  193. package/dist/index.d.ts +43 -0
  194. package/dist/index.js +98 -0
  195. package/dist/keys/index.d.ts +1 -0
  196. package/dist/keys/index.js +4 -0
  197. package/dist/keys/node-client.d.ts +27 -0
  198. package/dist/keys/node-client.js +97 -0
  199. package/dist/oid4vp/binding.d.ts +76 -0
  200. package/dist/oid4vp/binding.js +118 -0
  201. package/dist/oid4vp/did-web.d.ts +49 -0
  202. package/dist/oid4vp/did-web.js +57 -0
  203. package/dist/oid4vp/index.d.ts +9 -0
  204. package/dist/oid4vp/index.js +10 -0
  205. package/dist/oid4vp/jose.d.ts +166 -0
  206. package/dist/oid4vp/jose.js +242 -0
  207. package/dist/oid4vp/jwe.d.ts +30 -0
  208. package/dist/oid4vp/jwe.js +93 -0
  209. package/dist/oid4vp/oid4vci.d.ts +84 -0
  210. package/dist/oid4vp/oid4vci.js +85 -0
  211. package/dist/oid4vp/request-object.d.ts +109 -0
  212. package/dist/oid4vp/request-object.js +96 -0
  213. package/dist/oid4vp/sd-jwt.d.ts +177 -0
  214. package/dist/oid4vp/sd-jwt.js +208 -0
  215. package/dist/oid4vp/verifier-agent.d.ts +161 -0
  216. package/dist/oid4vp/verifier-agent.js +132 -0
  217. package/dist/oid4vp/wallet.d.ts +116 -0
  218. package/dist/oid4vp/wallet.js +108 -0
  219. package/dist/recipient/store.d.ts +67 -0
  220. package/dist/recipient/store.js +98 -0
  221. package/dist/signing/ecdsa.d.ts +49 -0
  222. package/dist/signing/ecdsa.js +79 -0
  223. package/dist/signing/frost.d.ts +88 -0
  224. package/dist/signing/frost.js +145 -0
  225. package/dist/signing/index.d.ts +4 -0
  226. package/dist/signing/index.js +3 -0
  227. package/dist/slots/faucet.d.ts +23 -0
  228. package/dist/slots/faucet.js +35 -0
  229. package/dist/slots/index.d.ts +2 -0
  230. package/dist/slots/index.js +4 -0
  231. package/dist/verifier-agent/index.d.ts +241 -0
  232. package/dist/verifier-agent/index.js +411 -0
  233. package/docs/DEVELOPER-EXPERIENCE.md +62 -0
  234. package/docs/README.md +33 -0
  235. package/docs/access-control.md +76 -0
  236. package/docs/ai-development.md +292 -0
  237. package/docs/api.md +338 -0
  238. package/docs/application-api.md +335 -0
  239. package/docs/architecture.md +65 -0
  240. package/docs/basics.md +48 -0
  241. package/docs/capabilities.md +86 -0
  242. package/docs/chain.md +153 -0
  243. package/docs/compatibility.md +36 -0
  244. package/docs/consumer-migrations.md +80 -0
  245. package/docs/create-slot.md +104 -0
  246. package/docs/document-signing.md +243 -0
  247. package/docs/encrypted-notes.md +129 -0
  248. package/docs/encryption.md +100 -0
  249. package/docs/errors.md +76 -0
  250. package/docs/flows.md +289 -0
  251. package/docs/fuji.md +127 -0
  252. package/docs/funding.md +126 -0
  253. package/docs/getting-started.md +94 -0
  254. package/docs/glossary.md +44 -0
  255. package/docs/installation.md +132 -0
  256. package/docs/manage-slot.md +95 -0
  257. package/docs/native-approvals.md +124 -0
  258. package/docs/prerequisites.md +137 -0
  259. package/docs/read-slot.md +41 -0
  260. package/docs/reference/README.md +30 -0
  261. package/docs/reference/app-node.md +102 -0
  262. package/docs/reference/app.md +1737 -0
  263. package/docs/reference/chain-node.md +159 -0
  264. package/docs/reference/chain.md +3609 -0
  265. package/docs/reference/committee.md +2176 -0
  266. package/docs/reference/main.md +4068 -0
  267. package/docs/reference/oid4vp.md +2547 -0
  268. package/docs/reference/verifier-agent.md +498 -0
  269. package/docs/shared-account.md +168 -0
  270. package/docs/signing-and-encryption.md +52 -0
  271. package/docs/signing.md +172 -0
  272. package/examples/committee-slot.ts +16 -0
  273. package/examples/connect-fuji.ts +41 -0
  274. package/examples/connect-network.ts +14 -0
  275. package/examples/credential-approvals.ts +46 -0
  276. package/examples/document-signing/README.md +59 -0
  277. package/examples/document-signing/backend.ts +132 -0
  278. package/examples/document-signing/build.mjs +19 -0
  279. package/examples/document-signing/config.ts +34 -0
  280. package/examples/document-signing/gitignore.template +9 -0
  281. package/examples/document-signing/model.ts +140 -0
  282. package/examples/document-signing/network.ts +58 -0
  283. package/examples/document-signing/package.json +25 -0
  284. package/examples/document-signing/public/index.html +27 -0
  285. package/examples/document-signing/public/sample.pdf +31 -0
  286. package/examples/document-signing/public/styles.css +531 -0
  287. package/examples/document-signing/server.ts +358 -0
  288. package/examples/document-signing/setup.ts +111 -0
  289. package/examples/document-signing/store.ts +105 -0
  290. package/examples/document-signing/tsconfig.json +24 -0
  291. package/examples/document-signing/verify.ts +24 -0
  292. package/examples/document-signing/web/app.ts +312 -0
  293. package/examples/document-signing/web/preview.ts +67 -0
  294. package/examples/document-signing/web/wallet.ts +146 -0
  295. package/examples/document-signing/workflow.test.ts +228 -0
  296. package/examples/document-signing/workflow.ts +241 -0
  297. package/examples/document-signing.ts +96 -0
  298. package/examples/encrypted-notes.ts +86 -0
  299. package/examples/ethers-signer.ts +204 -0
  300. package/examples/fund-slot.ts +73 -0
  301. package/examples/getting-started.ts +25 -0
  302. package/examples/learning-authorize.ts +23 -0
  303. package/examples/learning-cancel-slot.ts +11 -0
  304. package/examples/learning-context.ts +28 -0
  305. package/examples/learning-create-slot.ts +25 -0
  306. package/examples/learning-read-slot.ts +8 -0
  307. package/examples/learning-renew-slot.ts +12 -0
  308. package/examples/learning-sign.ts +8 -0
  309. package/examples/live-config.ts +71 -0
  310. package/examples/minimal.ts +6 -0
  311. package/examples/native-approvals.ts +57 -0
  312. package/examples/network.ts +58 -0
  313. package/examples/offline.ts +16 -0
  314. package/examples/personal-vault.ts +20 -0
  315. package/examples/provision-slot.ts +47 -0
  316. package/examples/shared-account.ts +46 -0
  317. package/examples/slot-address.ts +13 -0
  318. package/examples/slot-creation.ts +9 -0
  319. package/examples/tutorial-negative.ts +26 -0
  320. package/examples/tutorial-support.ts +76 -0
  321. package/examples/viem-account.ts +203 -0
  322. package/package.json +303 -4
@@ -0,0 +1,2176 @@
1
+ # @t3foundry/tasra-sdk/committee
2
+
3
+ Generated from public TypeScript exports.
4
+
5
+ [SDK reference](README.md) · [Task guides](../README.md) · [Errors](../errors.md)
6
+
7
+ ## Classes
8
+
9
+ Clients, adapters and error classes.
10
+
11
+ <details>
12
+ <summary>Browse 2 classes</summary>
13
+
14
+ - [CommitteeAuthorizeError](#committeeauthorizeerror)
15
+ - [OperationOutcomeUnknownError](#operationoutcomeunknownerror)
16
+
17
+ </details>
18
+
19
+ ### CommitteeAuthorizeError
20
+
21
+ A verifier refused to co-sign a committee token. Extends
22
+ ` TasraHttpError `, so `.status`, `.url`, `.body`, and `.retryable` are
23
+ all available and `isAuthDenied()` recognises a 401/403 here too.
24
+
25
+ Distinct from a generic HTTP error because the committee flow polls several
26
+ verifiers and tolerates individual refusals as long as a quorum co-signs - see
27
+ ` ThresholdNotMetError ` for the failure that means the quorum was missed.
28
+
29
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L71)
30
+
31
+ Import: `import {CommitteeAuthorizeError} from '@t3foundry/tasra-sdk/committee'`
32
+
33
+ ```ts
34
+ declare class CommitteeAuthorizeError {
35
+ constructor(status: number, message: string, opts?: {
36
+ url?: string;
37
+ body?: string;
38
+ });
39
+ }
40
+ ```
41
+
42
+ - ` readonly status: number; ` — HTTP status code returned by the service.
43
+
44
+ - ` readonly url: string; ` — Service URL that failed.
45
+
46
+ - ` readonly body: string; ` — Response body retained as diagnostic information.
47
+
48
+ - ` readonly retryable: boolean; ` — `false` when retrying the identical request cannot succeed.
49
+
50
+ - ` name: string; `
51
+
52
+ - ` message: string; `
53
+
54
+ - ` stack?: string; `
55
+
56
+ - ` cause?: unknown; `
57
+
58
+ ### OperationOutcomeUnknownError
59
+
60
+ A signing request may have been accepted despite a transport or response failure. Reconcile before resubmitting.
61
+
62
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L14)
63
+
64
+ Import: `import {OperationOutcomeUnknownError} from '@t3foundry/tasra-sdk/committee'`
65
+
66
+ ```ts
67
+ declare class OperationOutcomeUnknownError {
68
+ constructor(operation: 'dual-create' | 'dual-approve', requestId?: string, cause?: unknown);
69
+ }
70
+ ```
71
+
72
+ - ` readonly operation: 'dual-create' | 'dual-approve'; ` — Request phase whose submission outcome must be reconciled.
73
+
74
+ - ` readonly requestId?: string; ` — Existing native signing request identifier, when known.
75
+
76
+ - ` readonly retryable: boolean; ` — `false` when retrying the identical request cannot succeed.
77
+
78
+ - ` name: string; `
79
+
80
+ - ` message: string; `
81
+
82
+ - ` stack?: string; `
83
+
84
+ - ` cause?: unknown; `
85
+
86
+ ## Functions
87
+
88
+ Operations you can import and call.
89
+
90
+ <details>
91
+ <summary>Browse 40 functions</summary>
92
+
93
+ - [assembleCompoundToken](#assemblecompoundtoken)
94
+ - [auditOperationId](#auditoperationid)
95
+ - [buildVerifierProofs](#buildverifierproofs)
96
+ - [clientBindingHash](#clientbindinghash)
97
+ - [committeeAuthorize](#committeeauthorize)
98
+ - [committeeChainReadsFromClient](#committeechainreadsfromclient)
99
+ - [committeeDecrypt](#committeedecrypt)
100
+ - [committeeDecryptRequest](#committeedecryptrequest)
101
+ - [committeeSign](#committeesign)
102
+ - [committeeSignEoaDigest](#committeesigneoadigest)
103
+ - [committeeSignRequest](#committeesignrequest)
104
+ - [compoundTokenCanonicalBytes](#compoundtokencanonicalbytes)
105
+ - [compoundTokenHash](#compoundtokenhash)
106
+ - [createDualSignClient](#createdualsignclient)
107
+ - [decodeCompoundToken](#decodecompoundtoken)
108
+ - [decodeOperationReceipt](#decodeoperationreceipt)
109
+ - [decryptIdentityStrict](#decryptidentitystrict)
110
+ - [dpopHtu](#dpophtu)
111
+ - [dualSignApprovalPayload](#dualsignapprovalpayload)
112
+ - [ed25519ClientSigner](#ed25519clientsigner)
113
+ - [evidenceBindingMessage](#evidencebindingmessage)
114
+ - [extractIdentityStrict](#extractidentitystrict)
115
+ - [gatherCommitteeToken](#gathercommitteetoken)
116
+ - [holderProofPerVerifier](#holderproofperverifier)
117
+ - [ibeDecryptRequest](#ibedecryptrequest)
118
+ - [ibeExtractRequest](#ibeextractrequest)
119
+ - [isValidSessionId](#isvalidsessionid)
120
+ - [merkleProof](#merkleproof)
121
+ - [merkleRoot](#merkleroot)
122
+ - [normalizeOrigin](#normalizeorigin)
123
+ - [opAttestationHash](#opattestationhash)
124
+ - [platformAudience](#platformaudience)
125
+ - [requestCommitteeToken](#requestcommitteetoken)
126
+ - [requestIbeExtractionPartials](#requestibeextractionpartials)
127
+ - [selectVerifierCommittee](#selectverifiercommittee)
128
+ - [verifierLeaf](#verifierleaf)
129
+ - [verifyCompoundToken](#verifycompoundtoken)
130
+ - [verifyEvidenceBinding](#verifyevidencebinding)
131
+ - [verifyMerkleProof](#verifymerkleproof)
132
+ - [verifyOperationReceipt](#verifyoperationreceipt)
133
+
134
+ </details>
135
+
136
+ ### assembleCompoundToken
137
+
138
+ Encode a token payload and verifier signatures into the keeper JSON wire format. This does not verify signatures.
139
+
140
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L552)
141
+
142
+ Import: `import {assembleCompoundToken} from '@t3foundry/tasra-sdk/committee'`
143
+
144
+ ```ts
145
+ declare function assembleCompoundToken(p: CompoundTokenPayload, signatures: CommitteeSignature[]): CompoundTokenWire;
146
+ ```
147
+
148
+ | Parameter | Type | Description |
149
+ |---|---|---|
150
+ | ` p ` | ` CompoundTokenPayload ` | - Compound token payload, excluding signatures. |
151
+ | ` signatures ` | ` CommitteeSignature[] ` | - Verifier signatures to include in the wire object. |
152
+
153
+ Returns: ` CompoundTokenWire `.
154
+
155
+ ### auditOperationId
156
+
157
+ Deterministic operation ID, matching keykeeper_committee::audit_op_id.
158
+
159
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/receipts.ts#L49)
160
+
161
+ Import: `import {auditOperationId} from '@t3foundry/tasra-sdk/committee'`
162
+
163
+ ```ts
164
+ declare function auditOperationId(slotId: Uint8Array, operation: 'sign' | 'decrypt' | 'ibe-extract', tokenHash: Uint8Array, payloadDigest: Uint8Array): Uint8Array;
165
+ ```
166
+
167
+ | Parameter | Type | Description |
168
+ |---|---|---|
169
+ | ` slotId ` | ` Uint8Array ` | - 32-byte slot identifier. |
170
+ | ` operation ` | ` 'sign' \| 'decrypt' \| 'ibe-extract' ` | - Operation name bound into the audit identifier. |
171
+ | ` tokenHash ` | ` Uint8Array ` | - 32-byte compound token hash. |
172
+ | ` payloadDigest ` | ` Uint8Array ` | - 32-byte operation payload digest. |
173
+
174
+ Returns: ` Uint8Array `.
175
+
176
+ ### buildVerifierProofs
177
+
178
+ Build snapshot-inclusion proofs for the token's `signerIndexes` from the full ordered verifier
179
+ directory. Returns `undefined` (never a wrong proof) when the directory is incomplete, a key is
180
+ missing, or the reconstructed root disagrees with the anchored `snapshotRoot` - so a mismatch
181
+ degrades to the keeper's configured-set path rather than shipping a proof the keeper rejects.
182
+
183
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L239)
184
+
185
+ Import: `import {buildVerifierProofs} from '@t3foundry/tasra-sdk/committee'`
186
+
187
+ ```ts
188
+ declare function buildVerifierProofs(verifiers: CommitteeVerifier[], registrySize: number, signerIndexes: number[], snapshotRoot?: Uint8Array): VerifierProof[] | undefined;
189
+ ```
190
+
191
+ | Parameter | Type | Description |
192
+ |---|---|---|
193
+ | ` verifiers ` | ` CommitteeVerifier[] ` | - Complete verifier directory including indices, operators and public keys. |
194
+ | ` registrySize ` | ` number ` | - Expected number of registry entries. |
195
+ | ` signerIndexes ` | ` number[] ` | - Verifier indices whose inclusion proofs are required. |
196
+ | ` snapshotRoot? ` | ` Uint8Array ` | - Optional independently anchored verifier snapshot root. |
197
+
198
+ Returns: ` VerifierProof[] | undefined `.
199
+
200
+ ### clientBindingHash
201
+
202
+ The 32-byte hash the client (== the credential holder) signs to attest it authorized this
203
+ operation on `slotId` under the compound token whose canonical hash is `tokenHash`:
204
+ `keccak256(DOMAIN || slotId || tokenHash)`. Byte-identical to the reference `client_binding_hash`, so
205
+ the keeper (hot path) and accountant (audit) verify the client signature over the same bytes.
206
+
207
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L225)
208
+
209
+ Import: `import {clientBindingHash} from '@t3foundry/tasra-sdk/committee'`
210
+
211
+ ```ts
212
+ declare function clientBindingHash(slotId: Uint8Array, tokenHash: Uint8Array): Uint8Array;
213
+ ```
214
+
215
+ | Parameter | Type | Description |
216
+ |---|---|---|
217
+ | ` slotId ` | ` Uint8Array ` | - 32-byte slot identifier. |
218
+ | ` tokenHash ` | ` Uint8Array ` | - 32-byte compound token hash. |
219
+
220
+ Returns: ` Uint8Array `.
221
+
222
+ ### committeeAuthorize
223
+
224
+ Ask one verifier to authorize the request. Throws CommitteeAuthorizeError
225
+ (with `.status`) on a non-2xx - notably 403 when this verifier wasn't drawn.
226
+
227
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L210)
228
+
229
+ Import: `import {committeeAuthorize} from '@t3foundry/tasra-sdk/committee'`
230
+
231
+ ```ts
232
+ declare function committeeAuthorize(verifierUrl: string, body: CommitteeAuthorizeBody): Promise<CommitteeAuthorizeReply>;
233
+ ```
234
+
235
+ | Parameter | Type | Description |
236
+ |---|---|---|
237
+ | ` verifierUrl ` | ` string ` | - Verifier HTTP base URL. |
238
+ | ` body ` | ` CommitteeAuthorizeBody ` | - Credential presentation and operation context for this verifier. |
239
+
240
+ Returns: ` Promise<CommitteeAuthorizeReply> `.
241
+
242
+ ### committeeChainReadsFromClient
243
+
244
+ Adapt the SDK chain client's `readers` into [CommitteeChainReads](#committeechainreads).
245
+
246
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L145)
247
+
248
+ Import: `import {committeeChainReadsFromClient} from '@t3foundry/tasra-sdk/committee'`
249
+
250
+ ```ts
251
+ declare function committeeChainReadsFromClient(readers: {
252
+ beacon: {
253
+ seed(): Promise<unknown>;
254
+ epoch(): Promise<unknown>;
255
+ seedAt?(epoch: bigint): Promise<unknown>;
256
+ };
257
+ keyRegistry: {
258
+ verifierPolicy(id: `0x${string}`): Promise<readonly [
259
+ number,
260
+ number
261
+ ]>;
262
+ };
263
+ verifierSet?: {
264
+ snapshotAt(epoch: bigint): Promise<unknown>;
265
+ };
266
+ }): CommitteeChainReads;
267
+ ```
268
+
269
+ | Parameter | Type | Description |
270
+ |---|---|---|
271
+ | ` readers ` | See detailed type below. | - Chain reader methods for the beacon, slot verifier policy and optional verifier snapshots. |
272
+
273
+ **` readers ` type**
274
+
275
+ ```ts
276
+ {
277
+ beacon: {
278
+ seed(): Promise<unknown>;
279
+ epoch(): Promise<unknown>;
280
+ seedAt?(epoch: bigint): Promise<unknown>;
281
+ };
282
+ keyRegistry: {
283
+ verifierPolicy(id: `0x${string}`): Promise<readonly [
284
+ number,
285
+ number
286
+ ]>;
287
+ };
288
+ verifierSet?: {
289
+ snapshotAt(epoch: bigint): Promise<unknown>;
290
+ };
291
+ }
292
+ ```
293
+
294
+ Returns: ` CommitteeChainReads `.
295
+
296
+ ### committeeDecrypt
297
+
298
+ Decrypt via committee authorization. The slot id is taken from the token.
299
+
300
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L497)
301
+
302
+ Import: `import {committeeDecrypt} from '@t3foundry/tasra-sdk/committee'`
303
+
304
+ ```ts
305
+ declare function committeeDecrypt(opts: CommitteeDecryptOpts): Promise<Uint8Array>;
306
+ ```
307
+
308
+ | Parameter | Type | Description |
309
+ |---|---|---|
310
+ | ` opts ` | ` CommitteeDecryptOpts ` | - Keeper endpoint, compound authorization, ciphertext and associated data. |
311
+
312
+ Returns: ` Promise<Uint8Array> `.
313
+
314
+ ### committeeDecryptRequest
315
+
316
+ One-call committee-authorized threshold decrypt.
317
+
318
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L440)
319
+
320
+ Import: `import {committeeDecryptRequest} from '@t3foundry/tasra-sdk/committee'`
321
+
322
+ ```ts
323
+ declare function committeeDecryptRequest(opts: CommitteeDecryptRequestOpts): Promise<Uint8Array>;
324
+ ```
325
+
326
+ | Parameter | Type | Description |
327
+ |---|---|---|
328
+ | ` opts ` | ` CommitteeDecryptRequestOpts ` | - Token request settings, keeper endpoint, ciphertext and associated data. |
329
+
330
+ Returns: ` Promise<Uint8Array> `.
331
+
332
+ ### committeeSign
333
+
334
+ Sign via committee authorization. The slot id is taken from the token.
335
+
336
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L415)
337
+
338
+ Import: `import {committeeSign} from '@t3foundry/tasra-sdk/committee'`
339
+
340
+ ```ts
341
+ declare function committeeSign(opts: CommitteeSignOpts): Promise<FrostSignResult>;
342
+ ```
343
+
344
+ | Parameter | Type | Description |
345
+ |---|---|---|
346
+ | ` opts ` | ` CommitteeSignOpts ` | - Keeper endpoint, compound authorization and message to sign. |
347
+
348
+ Returns: ` Promise<FrostSignResult> `.
349
+
350
+ ### committeeSignEoaDigest
351
+
352
+ Sign an Ethereum digest using credential-based committee authorization.
353
+ Open the verifier-agent session with action `sign` and message equal to `digest`.
354
+ The keeper checks the token's request binding against SHA-256(digest), then
355
+ threshold-signs the original digest. This never falls back to JWT authorization.
356
+
357
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/ecdsa.ts#L40)
358
+
359
+ Import: `import {committeeSignEoaDigest} from '@t3foundry/tasra-sdk/committee'`
360
+
361
+ ```ts
362
+ declare function committeeSignEoaDigest(opts: CommitteeEoaSignOpts): Promise<EoaSignature>;
363
+ ```
364
+
365
+ | Parameter | Type | Description |
366
+ |---|---|---|
367
+ | ` opts ` | ` CommitteeEoaSignOpts ` | - Compound authorization, keeper endpoint and 32-byte ECDSA digest. |
368
+
369
+ Returns: ` Promise<EoaSignature> `.
370
+
371
+ Return details: Ethereum signature components and the secp256k1 group public key.
372
+
373
+ Throws: On malformed input/response, network failure, or keeper rejection.
374
+ HTTP 401/403 is an authorization denial; do not retry it as a network failure.
375
+
376
+ ### committeeSignRequest
377
+
378
+ One-call committee-authorized threshold sign: resolve token (+proofs) then POST to the keeper.
379
+
380
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L399)
381
+
382
+ Import: `import {committeeSignRequest} from '@t3foundry/tasra-sdk/committee'`
383
+
384
+ ```ts
385
+ declare function committeeSignRequest(opts: CommitteeSignRequestOpts): Promise<FrostSignResult>;
386
+ ```
387
+
388
+ | Parameter | Type | Description |
389
+ |---|---|---|
390
+ | ` opts ` | ` CommitteeSignRequestOpts ` | - Token request settings, keeper endpoint and message to sign. |
391
+
392
+ Returns: ` Promise<FrostSignResult> `.
393
+
394
+ ### compoundTokenCanonicalBytes
395
+
396
+ Canonical, domain-separated, length-prefixed byte encoding hashed for signing.
397
+
398
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L157)
399
+
400
+ Import: `import {compoundTokenCanonicalBytes} from '@t3foundry/tasra-sdk/committee'`
401
+
402
+ ```ts
403
+ declare function compoundTokenCanonicalBytes(p: CompoundTokenPayload): Uint8Array;
404
+ ```
405
+
406
+ | Parameter | Type | Description |
407
+ |---|---|---|
408
+ | ` p ` | ` CompoundTokenPayload ` | - Compound token payload, excluding signatures. |
409
+
410
+ Returns: ` Uint8Array `.
411
+
412
+ ### compoundTokenHash
413
+
414
+ `keccak256` of the canonical bytes - the value each quorum verifier signs.
415
+
416
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L189)
417
+
418
+ Import: `import {compoundTokenHash} from '@t3foundry/tasra-sdk/committee'`
419
+
420
+ ```ts
421
+ declare function compoundTokenHash(p: CompoundTokenPayload): Uint8Array;
422
+ ```
423
+
424
+ | Parameter | Type | Description |
425
+ |---|---|---|
426
+ | ` p ` | ` CompoundTokenPayload ` | - Compound token payload, excluding signatures. |
427
+
428
+ Returns: ` Uint8Array `.
429
+
430
+ ### createDualSignClient
431
+
432
+ Native multi-approver FROST lifecycle. Never falls back to a JWT route or creates
433
+ a new request after an ambiguous POST. All approval and result checks use the
434
+ original expected message, slot, public key and quorum, not server-selected values.
435
+
436
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L122)
437
+
438
+ Import: `import {createDualSignClient} from '@t3foundry/tasra-sdk/committee'`
439
+
440
+ ```ts
441
+ declare function createDualSignClient(input: DualSignConfig): {
442
+ create(message: Uint8Array, options?: {
443
+ signal?: AbortSignal;
444
+ }): Promise<DualSignRequest>;
445
+ resume(requestId: string, expectedMessage: Uint8Array): DualSignRequest;
446
+ };
447
+ ```
448
+
449
+ | Parameter | Type | Description |
450
+ |---|---|---|
451
+ | ` input ` | ` DualSignConfig ` | - Trusted slot key, keeper endpoint and required approver policy. |
452
+
453
+ Returns:
454
+
455
+ ```ts
456
+ {
457
+ create(message: Uint8Array, options?: {
458
+ signal?: AbortSignal;
459
+ }): Promise<DualSignRequest>;
460
+ resume(requestId: string, expectedMessage: Uint8Array): DualSignRequest;
461
+ }
462
+ ```
463
+
464
+ ### decodeCompoundToken
465
+
466
+ Decode a wire compound token into the byte-level payload + signatures for verification.
467
+
468
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L576)
469
+
470
+ Import: `import {decodeCompoundToken} from '@t3foundry/tasra-sdk/committee'`
471
+
472
+ ```ts
473
+ declare function decodeCompoundToken(w: CompoundTokenWire): CompoundTokenPayload & {
474
+ signatures: CommitteeSignature[];
475
+ };
476
+ ```
477
+
478
+ | Parameter | Type | Description |
479
+ |---|---|---|
480
+ | ` w ` | ` CompoundTokenWire ` | - Keeper JSON token representation to decode into byte fields. |
481
+
482
+ Returns:
483
+
484
+ ```ts
485
+ CompoundTokenPayload & {
486
+ signatures: CommitteeSignature[];
487
+ }
488
+ ```
489
+
490
+ ### decodeOperationReceipt
491
+
492
+ Decode the optional receipt tuple. Incomplete tuples are protocol errors.
493
+
494
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/receipts.ts#L32)
495
+
496
+ Import: `import {decodeOperationReceipt} from '@t3foundry/tasra-sdk/committee'`
497
+
498
+ ```ts
499
+ declare function decodeOperationReceipt(reply: {
500
+ op_id?: unknown;
501
+ token_hash?: unknown;
502
+ op_attestation?: unknown;
503
+ }): OperationReceipt | undefined;
504
+ ```
505
+
506
+ | Parameter | Type | Description |
507
+ |---|---|---|
508
+ | ` reply ` | ` { op_id?: unknown; token_hash?: unknown; op_attestation?: unknown; } ` | - Keeper response fields for operation identifier, token hash and signature. |
509
+
510
+ Returns: ` OperationReceipt | undefined `.
511
+
512
+ ### decryptIdentityStrict
513
+
514
+ Decrypt an IBE ciphertext and clear the intermediate identity key on every exit.
515
+
516
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L144)
517
+
518
+ Import: `import {decryptIdentityStrict} from '@t3foundry/tasra-sdk/committee'`
519
+
520
+ ```ts
521
+ declare function decryptIdentityStrict(opts: StrictExtractionOptions & {
522
+ ciphertext: IbeCiphertext;
523
+ }): Promise<Omit<StrictExtractionResult, 'key'> & {
524
+ plaintext: Uint8Array;
525
+ }>;
526
+ ```
527
+
528
+ | Parameter | Type | Description |
529
+ |---|---|---|
530
+ | ` opts ` | ` StrictExtractionOptions & { ciphertext: IbeCiphertext; } ` | - Strict extraction requirements plus the IBE ciphertext to decrypt. |
531
+
532
+ Returns:
533
+
534
+ ```ts
535
+ Promise<Omit<StrictExtractionResult, 'key'> & {
536
+ plaintext: Uint8Array;
537
+ }>
538
+ ```
539
+
540
+ ### dpopHtu
541
+
542
+ The `htu` (RFC 9449 §4.2) a DPoP proof for an OAuth response must carry:
543
+ `{origin}/v1/sessions/{sessionId}/oauth-response` — the URL the proof is presented at.
544
+
545
+ Per session, because RFC 9449 §4.3 checks `htu` against the request URI and a conformant
546
+ client library derives it from the URL it calls. The ORIGIN is still the agent origin the
547
+ verifiers approved, so a client posting to a different base URL (an internal hostname, a
548
+ proxy) must still sign over the value the agent returned, not over the URL it called.
549
+
550
+ Throws on a session id that is not one plain path segment, exactly as the verifiers refuse
551
+ one.
552
+
553
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L92)
554
+
555
+ Import: `import {dpopHtu} from '@t3foundry/tasra-sdk/committee'`
556
+
557
+ ```ts
558
+ declare function dpopHtu(origin: string, sessionId: string): string;
559
+ ```
560
+
561
+ | Parameter | Type | Description |
562
+ |---|---|---|
563
+ | ` origin ` | ` string ` | - Verifier-agent public origin the verifiers approved. |
564
+ | ` sessionId ` | ` string ` | - Id of the OAuth session the proof is presented to. |
565
+
566
+ Returns: ` string `.
567
+
568
+ ### dualSignApprovalPayload
569
+
570
+ Exact existing Rust canonical_dual_sig_payload, including little-endian lengths.
571
+
572
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L35)
573
+
574
+ Import: `import {dualSignApprovalPayload} from '@t3foundry/tasra-sdk/committee'`
575
+
576
+ ```ts
577
+ declare function dualSignApprovalPayload(slotId: string, message: Uint8Array, requestId: string): Uint8Array;
578
+ ```
579
+
580
+ | Parameter | Type | Description |
581
+ |---|---|---|
582
+ | ` slotId ` | ` string ` | - 32-byte slot identifier as hexadecimal text. |
583
+ | ` message ` | ` Uint8Array ` | - Original message bytes to authorize. |
584
+ | ` requestId ` | ` string ` | - Existing native signing request identifier. |
585
+
586
+ Returns: ` Uint8Array `.
587
+
588
+ ### ed25519ClientSigner
589
+
590
+ A [ClientSigner](#clientsigner) from a 32-byte ed25519 secret key (the common `did:key` holder).
591
+
592
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L96)
593
+
594
+ Import: `import {ed25519ClientSigner} from '@t3foundry/tasra-sdk/committee'`
595
+
596
+ ```ts
597
+ declare function ed25519ClientSigner(secretKey: Uint8Array): ClientSigner;
598
+ ```
599
+
600
+ | Parameter | Type | Description |
601
+ |---|---|---|
602
+ | ` secretKey ` | ` Uint8Array ` | - 32-byte Ed25519 secret seed used to sign client request bindings. |
603
+
604
+ Returns: ` ClientSigner `.
605
+
606
+ ### evidenceBindingMessage
607
+
608
+ `keccak256(DOMAIN ‖ tokenHash ‖ evidenceHash ‖ evidenceKeyId)` — the message each drawn
609
+ verifier signs beside its token signature. Byte-identical to the Rust
610
+ `keykeeper_committee::evidence_binding_message`.
611
+
612
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L478)
613
+
614
+ Import: `import {evidenceBindingMessage} from '@t3foundry/tasra-sdk/committee'`
615
+
616
+ ```ts
617
+ declare function evidenceBindingMessage(tokenHash: Uint8Array, evidenceHash: Uint8Array, evidenceKeyId: Uint8Array): Uint8Array;
618
+ ```
619
+
620
+ | Parameter | Type | Description |
621
+ |---|---|---|
622
+ | ` tokenHash ` | ` Uint8Array ` | - 32-byte compound-token signing hash. |
623
+ | ` evidenceHash ` | ` Uint8Array ` | - 32-byte keccak256 of the sealed evidence ciphertext. |
624
+ | ` evidenceKeyId ` | ` Uint8Array ` | - 32-byte keccak256 of the accountant evidence key it is sealed to. |
625
+
626
+ Returns: ` Uint8Array `.
627
+
628
+ ### extractIdentityStrict
629
+
630
+ Extract using a distinct assigned quorum, one epoch and the chain-anchored group key.
631
+ Read slot metadata before calling; this helper deliberately cannot authenticate caller
632
+ configuration. Never populate pinned shares from the extraction response itself.
633
+ All temporary partials are cleared even on rejection. No master key is reconstructed.
634
+
635
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L82)
636
+
637
+ Import: `import {extractIdentityStrict} from '@t3foundry/tasra-sdk/committee'`
638
+
639
+ ```ts
640
+ declare function extractIdentityStrict(input: StrictExtractionOptions): Promise<StrictExtractionResult>;
641
+ ```
642
+
643
+ | Parameter | Type | Description |
644
+ |---|---|---|
645
+ | ` input ` | ` StrictExtractionOptions ` | - Expected slot key, epoch, quorum, keepers and authorized identity. |
646
+
647
+ Returns: ` Promise<StrictExtractionResult> `.
648
+
649
+ ### gatherCommitteeToken
650
+
651
+ Fan out to the candidate verifiers, collect signatures from the drawn committee
652
+ until quorum, and assemble the compound token. Verifies that our locally
653
+ recomputed canonical token hash equals the hash the verifiers signed (a built-in
654
+ encoding cross-check). Returns the wire token to POST to the keeper.
655
+
656
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L298)
657
+
658
+ Import: `import {gatherCommitteeToken} from '@t3foundry/tasra-sdk/committee'`
659
+
660
+ ```ts
661
+ declare function gatherCommitteeToken(opts: GatherCommitteeTokenOpts): Promise<CompoundTokenWire>;
662
+ ```
663
+
664
+ | Parameter | Type | Description |
665
+ |---|---|---|
666
+ | ` opts ` | ` GatherCommitteeTokenOpts ` | - Verifier requests, committee draw and required signature quorum. |
667
+
668
+ Returns: ` Promise<CompoundTokenWire> `.
669
+
670
+ ### holderProofPerVerifier
671
+
672
+ One holder proof-of-possession per drawn verifier: fetch THAT verifier's nonce, sign it
673
+ with the holder key over the same credentials + slot, hand it back for that verifier only.
674
+ Pass the result as `holderProof` to [requestCommitteeToken](#requestcommitteetoken) (or the one-call
675
+ helpers built on it).
676
+
677
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L71)
678
+
679
+ Import: `import {holderProofPerVerifier} from '@t3foundry/tasra-sdk/committee'`
680
+
681
+ ```ts
682
+ declare function holderProofPerVerifier(opts: {
683
+ signer: HolderSigner;
684
+ audience: string;
685
+ credentials: string[];
686
+ slotId?: string;
687
+ action?: string;
688
+ ttlSecs?: number;
689
+ }): HolderProofPerVerifier;
690
+ ```
691
+
692
+ | Parameter | Type | Description |
693
+ |---|---|---|
694
+ | ` opts ` | ` { signer: HolderSigner; audience: string; credentials: string[]; slotId?: string; action?: string; ttlSecs?: number; } ` | - Holder signer, credentials, audience and optional operation binding. |
695
+
696
+ Returns: ` HolderProofPerVerifier `.
697
+
698
+ ### ibeDecryptRequest
699
+
700
+ One-call identity-scoped decrypt (the read path): token to extraction fan-out
701
+ to verify each partial to combine to decrypt. The intermediate `sk_ID` never surfaces.
702
+
703
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L501)
704
+
705
+ Import: `import {ibeDecryptRequest} from '@t3foundry/tasra-sdk/committee'`
706
+
707
+ ```ts
708
+ declare function ibeDecryptRequest(opts: IbeExtractRequestOpts & {
709
+ ciphertext: IbeCiphertext;
710
+ }): Promise<Uint8Array>;
711
+ ```
712
+
713
+ | Parameter | Type | Description |
714
+ |---|---|---|
715
+ | ` opts ` | ` IbeExtractRequestOpts & { ciphertext: IbeCiphertext; } ` | - Authorization context, identity and IBE ciphertext to decrypt. |
716
+
717
+ Returns: ` Promise<Uint8Array> `.
718
+
719
+ ### ibeExtractRequest
720
+
721
+ Resolve an identity-scoped committee token, fan out for extraction partials, verify
722
+ each (identifiable abort - the error names the node), and return `sk_ID` (48-byte
723
+ compressed G1).
724
+
725
+ CUSTODY OPT-IN: holding `sk_ID` is a durable capability over every past and future
726
+ ciphertext to this identity. Prefer [ibeDecryptRequest](#ibedecryptrequest), which combines,
727
+ decrypts and drops it. Zeroize the returned bytes when done.
728
+
729
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L485)
730
+
731
+ Import: `import {ibeExtractRequest} from '@t3foundry/tasra-sdk/committee'`
732
+
733
+ ```ts
734
+ declare function ibeExtractRequest(opts: IbeExtractRequestOpts): Promise<Uint8Array>;
735
+ ```
736
+
737
+ | Parameter | Type | Description |
738
+ |---|---|---|
739
+ | ` opts ` | ` IbeExtractRequestOpts ` | - Authorization context, keeper endpoints and requested identity. |
740
+
741
+ Returns: ` Promise<Uint8Array> `.
742
+
743
+ ### isValidSessionId
744
+
745
+ Whether `sessionId` is one plain path segment: `[A-Za-z0-9_-]{1,128}`. Mirrors
746
+ `keykeeper_committee::oauth::validate_session_id`, which every drawn verifier runs.
747
+
748
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L34)
749
+
750
+ Import: `import {isValidSessionId} from '@t3foundry/tasra-sdk/committee'`
751
+
752
+ ```ts
753
+ declare function isValidSessionId(sessionId: string): boolean;
754
+ ```
755
+
756
+ | Parameter | Type | Description |
757
+ |---|---|---|
758
+ | ` sessionId ` | ` string ` | - Session id returned by the verifier agent when the session was opened. |
759
+
760
+ Returns: ` boolean `.
761
+
762
+ ### merkleProof
763
+
764
+ The inclusion proof (sibling hashes, leaf to root) for `index` in `leaves`. `null` if `index`
765
+ is out of range. Mirrors the reference `merkle_proof`; pairs with [`verifyMerkleProof`].
766
+
767
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L291)
768
+
769
+ Import: `import {merkleProof} from '@t3foundry/tasra-sdk/committee'`
770
+
771
+ ```ts
772
+ declare function merkleProof(leaves: Uint8Array[], index: number): Uint8Array[] | null;
773
+ ```
774
+
775
+ | Parameter | Type | Description |
776
+ |---|---|---|
777
+ | ` leaves ` | ` Uint8Array[] ` | - Ordered Merkle leaf hashes. |
778
+ | ` index ` | ` number ` | - Zero-based index of the leaf to prove. |
779
+
780
+ Returns: ` Uint8Array[] | null `.
781
+
782
+ ### merkleRoot
783
+
784
+ Build the Merkle root over `leaves` (sorted-pair; an odd node is promoted unchanged to the
785
+ next level). `null` for an empty set. Byte-identical to the reference `merkle_root`, so a root
786
+ built here matches the on-chain `VerifierSetRegistry`/`Settlement` anchored root.
787
+
788
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L277)
789
+
790
+ Import: `import {merkleRoot} from '@t3foundry/tasra-sdk/committee'`
791
+
792
+ ```ts
793
+ declare function merkleRoot(leaves: Uint8Array[]): Uint8Array | null;
794
+ ```
795
+
796
+ | Parameter | Type | Description |
797
+ |---|---|---|
798
+ | ` leaves ` | ` Uint8Array[] ` | - Ordered Merkle leaf hashes. |
799
+
800
+ Returns: ` Uint8Array | null `.
801
+
802
+ ### normalizeOrigin
803
+
804
+ Normalise an origin the way the reference endpoint normaliser
805
+ does: trim, drop a trailing slash, lower-case the scheme and authority, keep the path as
806
+ written.
807
+
808
+ The PATH keeps its case deliberately - a path is case-sensitive, and lower-casing it
809
+ would silently rewrite an agent deployed under `/API`.
810
+
811
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L48)
812
+
813
+ Import: `import {normalizeOrigin} from '@t3foundry/tasra-sdk/committee'`
814
+
815
+ ```ts
816
+ declare function normalizeOrigin(url: string): string;
817
+ ```
818
+
819
+ | Parameter | Type | Description |
820
+ |---|---|---|
821
+ | ` url ` | ` string ` | - Endpoint text to normalize; scheme and authority are lowercased while the path is preserved. |
822
+
823
+ Returns: ` string `.
824
+
825
+ ### opAttestationHash
826
+
827
+ The hash a keeper signs to attest it served `opId` on `slotId` under the token `tokenHash`.
828
+
829
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L203)
830
+
831
+ Import: `import {opAttestationHash} from '@t3foundry/tasra-sdk/committee'`
832
+
833
+ ```ts
834
+ declare function opAttestationHash(chainId: number | bigint, opId: Uint8Array, slotId: Uint8Array, tokenHash: Uint8Array): Uint8Array;
835
+ ```
836
+
837
+ | Parameter | Type | Description |
838
+ |---|---|---|
839
+ | ` chainId ` | ` number \| bigint ` | - EVM chain identifier. |
840
+ | ` opId ` | ` Uint8Array ` | - 32-byte audit operation identifier. |
841
+ | ` slotId ` | ` Uint8Array ` | - 32-byte slot identifier. |
842
+ | ` tokenHash ` | ` Uint8Array ` | - 32-byte compound token hash. |
843
+
844
+ Returns: ` Uint8Array `.
845
+
846
+ ### platformAudience
847
+
848
+ The OAuth audience the tenant registers with its IdP and every rule pins:
849
+ `{origin}/authz/{chainId}`.
850
+
851
+ The chain id is in it so a token minted for a testnet deployment of the same platform
852
+ cannot authorize on mainnet.
853
+
854
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L73)
855
+
856
+ Import: `import {platformAudience} from '@t3foundry/tasra-sdk/committee'`
857
+
858
+ ```ts
859
+ declare function platformAudience(origin: string, chainId: number | bigint): string;
860
+ ```
861
+
862
+ | Parameter | Type | Description |
863
+ |---|---|---|
864
+ | ` origin ` | ` string ` | - Platform origin used to derive the token audience. |
865
+ | ` chainId ` | ` number \| bigint ` | - EVM chain identifier for the selected network. |
866
+
867
+ Returns: ` string `.
868
+
869
+ ### requestCommitteeToken
870
+
871
+ Read the verifier committee draw, request authorization and assemble the quorum token with available membership proofs.
872
+
873
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L292)
874
+
875
+ Import: `import {requestCommitteeToken} from '@t3foundry/tasra-sdk/committee'`
876
+
877
+ ```ts
878
+ declare function requestCommitteeToken(opts: RequestCommitteeTokenOpts): Promise<CommitteeTokenResult>;
879
+ ```
880
+
881
+ | Parameter | Type | Description |
882
+ |---|---|---|
883
+ | ` opts ` | ` RequestCommitteeTokenOpts ` | - Chain draw, verifier directory, credentials and holder authorization. |
884
+
885
+ Returns: ` Promise<CommitteeTokenResult> `.
886
+
887
+ ### requestIbeExtractionPartials
888
+
889
+ Fan out to the keeper nodes and collect extraction partials. Nodes that refuse or are
890
+ down are skipped; throws - naming every node and its reason - only when NONE served.
891
+ The caller combines with `ibeCombineDecrypt`/`ibeCombineExtract`, which pairing-verify
892
+ each partial (identifiable abort names the node via the identifier).
893
+
894
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L627)
895
+
896
+ Import: `import {requestIbeExtractionPartials} from '@t3foundry/tasra-sdk/committee'`
897
+
898
+ ```ts
899
+ declare function requestIbeExtractionPartials(opts: IbeExtractOpts): Promise<IbeExtractionPartial[]>;
900
+ ```
901
+
902
+ | Parameter | Type | Description |
903
+ |---|---|---|
904
+ | ` opts ` | ` IbeExtractOpts ` | - Compound token, identity, keepers and optional expected epoch. |
905
+
906
+ Returns: ` Promise<IbeExtractionPartial[]> `.
907
+
908
+ ### selectVerifierCommittee
909
+
910
+ Deterministically select `count` distinct verifier indexes in `[0, registrySize)` for one
911
+ request: `index = keccak256(SELECT_DOMAIN || slotId || epoch(u64 BE) || seed || iter(u64 BE)) mod registrySize`,
912
+ skipping a repeat and incrementing `iter`. Identical, identically-ordered to what the
913
+ verifier selects and the keeper reconstructs.
914
+
915
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L92)
916
+
917
+ Import: `import {selectVerifierCommittee} from '@t3foundry/tasra-sdk/committee'`
918
+
919
+ ```ts
920
+ declare function selectVerifierCommittee(slotId: Uint8Array, epoch: number | bigint, seed: Uint8Array, registrySize: number, count: number): number[];
921
+ ```
922
+
923
+ | Parameter | Type | Description |
924
+ |---|---|---|
925
+ | ` slotId ` | ` Uint8Array ` | - 32-byte slot identifier. |
926
+ | ` epoch ` | ` number \| bigint ` | - Beacon epoch for the committee draw. |
927
+ | ` seed ` | ` Uint8Array ` | - 32-byte beacon seed for that epoch. |
928
+ | ` registrySize ` | ` number ` | - Number of entries in the verifier registry. |
929
+ | ` count ` | ` number ` | - Number of distinct verifier indices to select. |
930
+
931
+ Returns: ` number[] `.
932
+
933
+ ### verifierLeaf
934
+
935
+ `keccak256(DOMAIN || index(u32 BE) || operator(20) || keccak256(pubkey))` - matches the on-chain leaf.
936
+
937
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L238)
938
+
939
+ Import: `import {verifierLeaf} from '@t3foundry/tasra-sdk/committee'`
940
+
941
+ ```ts
942
+ declare function verifierLeaf(index: number, operator: Uint8Array, pubkey: Uint8Array): Uint8Array;
943
+ ```
944
+
945
+ | Parameter | Type | Description |
946
+ |---|---|---|
947
+ | ` index ` | ` number ` | - Zero-based verifier registry index. |
948
+ | ` operator ` | ` Uint8Array ` | - 20-byte operator address. |
949
+ | ` pubkey ` | ` Uint8Array ` | - 32-byte Ed25519 verifier public key. |
950
+
951
+ Returns: ` Uint8Array `.
952
+
953
+ ### verifyCompoundToken
954
+
955
+ Verify rule binding, committee selection, token lifetime, Ed25519 signatures and quorum against the supplied verifier set.
956
+
957
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L376)
958
+
959
+ Import: `import {verifyCompoundToken} from '@t3foundry/tasra-sdk/committee'`
960
+
961
+ ```ts
962
+ declare function verifyCompoundToken(opts: VerifyCompoundTokenOptions): VerifiedToken;
963
+ ```
964
+
965
+ | Parameter | Type | Description |
966
+ |---|---|---|
967
+ | ` opts ` | ` VerifyCompoundTokenOptions ` | - Decoded token and independently established verifier, rule and time constraints. |
968
+
969
+ Returns: ` VerifiedToken `.
970
+
971
+ Return details: Fields attested by the verified committee token.
972
+
973
+ Throws: If any binding, freshness, signer or quorum check fails.
974
+
975
+ ### verifyEvidenceBinding
976
+
977
+ Mirror of the Rust `verify_evidence_binding`: every signature must come from a DRAWN
978
+ verifier in `set` and verify over [evidenceBindingMessage](#evidencebindingmessage); distinct signers are
979
+ counted once and must satisfy `quorum` of the drawn committee. Throws on any failure;
980
+ returns the verified indexes.
981
+
982
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L511)
983
+
984
+ Import: `import {verifyEvidenceBinding} from '@t3foundry/tasra-sdk/committee'`
985
+
986
+ ```ts
987
+ declare function verifyEvidenceBinding(opts: VerifyEvidenceBindingOptions): number[];
988
+ ```
989
+
990
+ | Parameter | Type | Description |
991
+ |---|---|---|
992
+ | ` opts ` | ` VerifyEvidenceBindingOptions ` | - Token and evidence hashes, the signatures, the verifier set, the drawn committee and the quorum. |
993
+
994
+ Returns: ` number[] `.
995
+
996
+ ### verifyMerkleProof
997
+
998
+ Verify a sorted-pair keccak Merkle inclusion proof (leaf to root).
999
+
1000
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L253)
1001
+
1002
+ Import: `import {verifyMerkleProof} from '@t3foundry/tasra-sdk/committee'`
1003
+
1004
+ ```ts
1005
+ declare function verifyMerkleProof(leaf: Uint8Array, proof: Uint8Array[], root: Uint8Array): boolean;
1006
+ ```
1007
+
1008
+ | Parameter | Type | Description |
1009
+ |---|---|---|
1010
+ | ` leaf ` | ` Uint8Array ` | - Leaf hash to prove. |
1011
+ | ` proof ` | ` Uint8Array[] ` | - Sibling hashes ordered from the leaf toward the root. |
1012
+ | ` root ` | ` Uint8Array ` | - Expected Merkle root. |
1013
+
1014
+ Returns: ` boolean `.
1015
+
1016
+ ### verifyOperationReceipt
1017
+
1018
+ Verify the receipt against independently established operation and keeper identities.
1019
+ Returns false for absent, malformed or mismatched evidence. Does not prove log completeness.
1020
+
1021
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/receipts.ts#L75)
1022
+
1023
+ Import: `import {verifyOperationReceipt} from '@t3foundry/tasra-sdk/committee'`
1024
+
1025
+ ```ts
1026
+ declare function verifyOperationReceipt(receipt: OperationReceipt | undefined, expected: ReceiptExpectation): boolean;
1027
+ ```
1028
+
1029
+ | Parameter | Type | Description |
1030
+ |---|---|---|
1031
+ | ` receipt ` | ` OperationReceipt \| undefined ` | - Decoded receipt, or undefined if the keeper supplied none. |
1032
+ | ` expected ` | ` ReceiptExpectation ` | - Trusted operation hashes, chain identifier and keeper public key. |
1033
+
1034
+ Returns: ` boolean `.
1035
+
1036
+ ## Types
1037
+
1038
+ Options, data structures and return types.
1039
+
1040
+ <details>
1041
+ <summary>Browse 37 types</summary>
1042
+
1043
+ - [ClientSigner](#clientsigner)
1044
+ - [CommitteeAuthorizeBody](#committeeauthorizebody)
1045
+ - [CommitteeAuthorizeReply](#committeeauthorizereply)
1046
+ - [CommitteeChainReads](#committeechainreads)
1047
+ - [CommitteeDecryptOpts](#committeedecryptopts)
1048
+ - [CommitteeDecryptRequestOpts](#committeedecryptrequestopts)
1049
+ - [CommitteeEoaSignOpts](#committeeeoasignopts)
1050
+ - [CommitteeSignature](#committeesignature)
1051
+ - [CommitteeSignatureWire](#committeesignaturewire)
1052
+ - [CommitteeSignOpts](#committeesignopts)
1053
+ - [CommitteeSignRequestOpts](#committeesignrequestopts)
1054
+ - [CommitteeTokenResult](#committeetokenresult)
1055
+ - [CommitteeVerifier](#committeeverifier)
1056
+ - [CompoundTokenPayload](#compoundtokenpayload)
1057
+ - [CompoundTokenWire](#compoundtokenwire)
1058
+ - [DualSignApprover](#dualsignapprover)
1059
+ - [DualSignConfig](#dualsignconfig)
1060
+ - [DualSignRequest](#dualsignrequest)
1061
+ - [DualSignStatus](#dualsignstatus)
1062
+ - [ExtractionEvidence](#extractionevidence)
1063
+ - [ExtractionKeeper](#extractionkeeper)
1064
+ - [GatherCommitteeTokenOpts](#gathercommitteetokenopts)
1065
+ - [HolderProofPerVerifier](#holderproofperverifier-1)
1066
+ - [IbeExtractionPartial](#ibeextractionpartial)
1067
+ - [IbeExtractOpts](#ibeextractopts)
1068
+ - [IbeExtractRequestOpts](#ibeextractrequestopts)
1069
+ - [OperationReceipt](#operationreceipt)
1070
+ - [ReceiptExpectation](#receiptexpectation)
1071
+ - [RequestCommitteeTokenOpts](#requestcommitteetokenopts)
1072
+ - [StrictExtractionOptions](#strictextractionoptions)
1073
+ - [StrictExtractionResult](#strictextractionresult)
1074
+ - [TokenType](#tokentype)
1075
+ - [VerifiedToken](#verifiedtoken)
1076
+ - [VerifierProof](#verifierproof)
1077
+ - [VerifierSet](#verifierset)
1078
+ - [VerifyCompoundTokenOptions](#verifycompoundtokenoptions)
1079
+ - [VerifyEvidenceBindingOptions](#verifyevidencebindingoptions)
1080
+
1081
+ </details>
1082
+
1083
+ ### ClientSigner
1084
+
1085
+ client request signature. The client (== the credential holder) proves it authorized
1086
+ this exact request by signing `clientBindingHash(slotId, tokenHash)`. Supply an ed25519 signer
1087
+ (the holder's authentication key) - the keeper (hot path) and the accountant (audit) verify it.
1088
+
1089
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L46)
1090
+
1091
+ ```ts
1092
+ export interface ClientSigner {
1093
+ publicKey: Uint8Array;
1094
+ sign(bindingHash: Uint8Array): Uint8Array | Promise<Uint8Array>;
1095
+ }
1096
+ ```
1097
+
1098
+ Fields:
1099
+
1100
+ - **` publicKey `**: 32-byte ed25519 public key.
1101
+ - **` sign `**: Sign the 32-byte client-binding hash to 64-byte ed25519 signature.
1102
+
1103
+ ### CommitteeAuthorizeBody
1104
+
1105
+ Credential presentation and request context sent to one verifier for committee authorization.
1106
+
1107
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L82)
1108
+
1109
+ ```ts
1110
+ export interface CommitteeAuthorizeBody {
1111
+ holder: string;
1112
+ credentials: string[];
1113
+ holderProof: string;
1114
+ tokenType: TokenType;
1115
+ seed: Uint8Array;
1116
+ epoch: number | bigint;
1117
+ slotId: Uint8Array;
1118
+ registrySize: number;
1119
+ committee: number;
1120
+ iat: number | bigint;
1121
+ exp: number | bigint;
1122
+ identity?: string;
1123
+ binding?: RequestBindingPreimage;
1124
+ }
1125
+ ```
1126
+
1127
+ Fields:
1128
+
1129
+ - **` holder `**: Holder DID (the credentials' subject).
1130
+ - **` credentials `**: Compact-JWS verifiable credentials.
1131
+ - **` holderProof `**: F1/F4: holder proof-of-possession. Build via `createHolderProof` (bind it to `slotId`). Empty string means omitted from the wire, which only a verifier with `require_holder_binding = false` accepts.
1132
+ - **` tokenType `**: Compound authorization token category.
1133
+ - **` seed `**: 32-byte on-chain beacon seed.
1134
+ - **` epoch `**: Beacon epoch used for the verifier committee draw.
1135
+ - **` slotId `**: 32-byte slot id.
1136
+ - **` registrySize `**: Active verifier-set size at `epoch`.
1137
+ - **` committee `**: The slot's verifierPolicy committee size.
1138
+ - **` iat `**: Issue time in Unix seconds.
1139
+ - **` exp `**: Expiration time in Unix seconds.
1140
+ - **` identity `**: The requested IBE identity, present **iff** the operation is identity-scoped. The committee evaluates the slot's scope binding against it and folds `keccak256(identity)` into the signed token - a quorum attests THIS identity and the token is unusable for any other. Omit for every other operation.
1141
+ - **` binding `**: request binding: the preimage every drawn verifier re-derives `request_hash` and the KB-JWT nonce from. Send it whenever the keeper runs `require_request_binding` (production posture): the reply then carries `request_hash` + `binding`, which the gathered token must include or the keeper refuses it. Absent = legacy (unbound) path.
1142
+
1143
+ ### CommitteeAuthorizeReply
1144
+
1145
+ Verifier signature, token hashes and committee metadata for an authorization request.
1146
+
1147
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L137)
1148
+
1149
+ ```ts
1150
+ export interface CommitteeAuthorizeReply {
1151
+ verifierIndex: number;
1152
+ tokenHash: Uint8Array;
1153
+ vpHash: Uint8Array;
1154
+ holderHash: Uint8Array;
1155
+ ruleHash: Uint8Array;
1156
+ identityHash?: Uint8Array;
1157
+ signature: Uint8Array;
1158
+ committeeIndexes: number[];
1159
+ ruleVersion?: number;
1160
+ requestHash?: Uint8Array;
1161
+ binding: number;
1162
+ }
1163
+ ```
1164
+
1165
+ Fields:
1166
+
1167
+ - **` verifierIndex `**: Zero-based verifier registry index.
1168
+ - **` tokenHash `**: 32-byte compound token hash.
1169
+ - **` vpHash `**: Hash of the credential presentation bound into the token.
1170
+ - **` holderHash `**: `keccak256` of the holder this verifier authenticated - inside the signed bytes.
1171
+ - **` ruleHash `**: `keccak256` of the RAW rule this verifier evaluated (UNSALTED) - what the keeper binds against its own `keccak256(rule)`.
1172
+ - **` identityHash `**: the identity binding this verifier signed - present iff the request carried `identity`. Inside the signed bytes, like `holderHash`.
1173
+ - **` signature `**: This verifier's signature over the compound token hash.
1174
+ - **` committeeIndexes `**: The full ordered committee draw, so the caller knows whom else to ask.
1175
+ - **` ruleVersion `**: The slot's `ruleVersion` this authorization was evaluated against. Diagnostic, not a gate. The keeper binds `ruleHash` to its own rule hash, so a token minted under a superseded policy is refused there whatever this says. Its value is that it explains the refusal: without it, a token minted moments before an amendment activates is rejected with nothing to distinguish it from a genuinely unauthorized request. `undefined` from a verifier that predates rule versioning.
1176
+ - **` requestHash `**: present when the request carried a binding preimage; inside the signed bytes.
1177
+ - **` binding `**: binding strength byte (`bindingFromWire`); `0x00` when the verifier declared none.
1178
+
1179
+ ### CommitteeChainReads
1180
+
1181
+ The chain reads the committee flow needs. Adapt from the SDK chain client with
1182
+ [committeeChainReadsFromClient](#committeechainreadsfromclient), or supply raw viem reads.
1183
+
1184
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L126)
1185
+
1186
+ ```ts
1187
+ export interface CommitteeChainReads {
1188
+ seed(): Promise<`0x${string}` | Uint8Array>;
1189
+ epoch(): Promise<bigint | number>;
1190
+ seedAt?(epoch: bigint): Promise<`0x${string}` | Uint8Array>;
1191
+ verifierPolicy(slotId: `0x${string}`): Promise<readonly [
1192
+ number,
1193
+ number
1194
+ ]>;
1195
+ snapshot?(epoch: bigint): Promise<{
1196
+ root: `0x${string}` | Uint8Array;
1197
+ size: number;
1198
+ } | null>;
1199
+ }
1200
+ ```
1201
+
1202
+ Fields:
1203
+
1204
+ - **` seed `**: 32-byte beacon seed for the current epoch.
1205
+ - **` epoch `**: Current beacon epoch.
1206
+ - **` seedAt `**: Seed of a past epoch (`ThresholdRandomBeacon.seedAt`) - needed for `epochLag > 0`.
1207
+ - **` verifierPolicy `**: The slot's `[committee, quorum]` verifier policy (both `uint16`).
1208
+ - **` snapshot `**: Optional anchored verifier-set snapshot `{root, size}` at an epoch - enables trustless proofs. Return `null` when none is anchored.
1209
+
1210
+ ### CommitteeDecryptOpts
1211
+
1212
+ Committee-authorized group decryption request and optional verifier membership proofs.
1213
+
1214
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L460)
1215
+
1216
+ ```ts
1217
+ export interface CommitteeDecryptOpts {
1218
+ nodeUrl: string;
1219
+ committeeToken: CompoundTokenWire;
1220
+ ciphertext: Ciphertext;
1221
+ identity: Uint8Array;
1222
+ decryptingSet: number[];
1223
+ blsPeers: BlsPeer[];
1224
+ userSignature?: Uint8Array;
1225
+ ciphertextEpoch?: number;
1226
+ targetKeykeeper?: string;
1227
+ verifierProofs?: VerifierProof[];
1228
+ clientPubkey?: Uint8Array;
1229
+ clientSignature?: Uint8Array;
1230
+ evidenceCt?: string;
1231
+ fetchImpl?: typeof fetch;
1232
+ }
1233
+ ```
1234
+
1235
+ Fields:
1236
+
1237
+ - **` nodeUrl `**: Keeper HTTP base URL.
1238
+ - **` committeeToken `**: Compound token authorizing this operation.
1239
+ - **` ciphertext `**: Ciphertext to decrypt.
1240
+ - **` identity `**: Original encryption associated data.
1241
+ - **` decryptingSet `**: Threshold participant identifiers for the decryption ceremony.
1242
+ - **` blsPeers `**: Peer identifiers for the selected BLS participants.
1243
+ - **` userSignature `**: Optional Ed25519 owner signature over the canonical operation request.
1244
+ - **` ciphertextEpoch `**: Expected key epoch of the ciphertext; used to detect rotation.
1245
+ - **` targetKeykeeper `**: Optional 20-byte operator address to pin the intended keeper.
1246
+ - **` verifierProofs `**: Verifier membership proofs for the selected snapshot.
1247
+ - **` clientPubkey `**: 32-byte Ed25519 client public key used to verify clientSignature; supply both fields together.
1248
+ - **` clientSignature `**: Client signature over the slot and compound token binding.
1249
+ - **` evidenceCt `**: the sealed presentation beside the token (`VerifierAgentResult.evidenceCt`), posted as `evidence_ct`. Required by a keeper with `require_committee_evidence`.
1250
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1251
+
1252
+ ### CommitteeDecryptRequestOpts
1253
+
1254
+ Operation-specific fields for [committeeDecryptRequest](#committeedecryptrequest).
1255
+
1256
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L416)
1257
+
1258
+ ```ts
1259
+ export interface CommitteeDecryptRequestOpts extends RequestCommitteeTokenOpts {
1260
+ nodeUrl: string;
1261
+ ciphertext: CommitteeDecryptOpts['ciphertext'];
1262
+ identity: Uint8Array;
1263
+ decryptingSet: number[];
1264
+ blsPeers: CommitteeDecryptOpts['blsPeers'];
1265
+ userSignature?: Uint8Array;
1266
+ ciphertextEpoch?: number;
1267
+ targetKeykeeper?: string;
1268
+ }
1269
+ ```
1270
+
1271
+ Fields:
1272
+
1273
+ - **` nodeUrl `**: Keeper HTTP base URL.
1274
+ - **` ciphertext `**: Ciphertext to decrypt.
1275
+ - **` identity `**: Original encryption associated data.
1276
+ - **` decryptingSet `**: Threshold participant identifiers for the decryption ceremony.
1277
+ - **` blsPeers `**: Peer identifiers for the selected BLS participants.
1278
+ - **` userSignature `**: Optional Ed25519 owner signature over the canonical operation request.
1279
+ - **` ciphertextEpoch `**: Expected key epoch of the ciphertext; used to detect rotation.
1280
+ - **` targetKeykeeper `**: Optional 20-byte operator address to pin the intended keeper.
1281
+ - **` chain `**: Reader methods for the beacon and slot verifier policy.
1282
+ - **` epochLag `**: Pin the draw to `latest - epochLag` (0 or 1). 1 = the previous epoch, always anchored: no wait for the accountants.
1283
+ - **` verifiers `**: The active verifier set (index to URL; add operator+pubkey to enable trustless proofs). Asking the whole set is fine - non-drawn verifiers reply 403 and are skipped.
1284
+ - **` slotId `**: 0x-prefixed 32-byte slot id.
1285
+ - **` holder `**: Holder DID (the credentials' subject).
1286
+ - **` credentials `**: Compact-JWS verifiable credentials.
1287
+ - **` holderProof `**: Proof of holder-key possession. Supply a per-verifier callback when each verifier has its own nonce store. Omitting it requires allowNoHolderProof and compatible verifier policy.
1288
+ - **` allowNoHolderProof `**: Send no holder proof. Only valid against `require_holder_binding = false`.
1289
+ - **` tokenType `**: Token type - default `'JWT'`.
1290
+ - **` ttlSecs `**: Token TTL in seconds - default 300.
1291
+ - **` nowSecs `**: Override "now" (unix seconds), mainly for tests.
1292
+ - **` clientSigner `**: sign the request bundle with the holder's key so the keeper + audit can verify the user authorized this operation. Omit to skip (keeper accepts unless it requires it).
1293
+ - **` scopedIdentity `**: Identity string for an IBE-scoped operation. Verifiers bind its hash into the token and evaluate the credential scope. Omit for group signing and group decryption; ciphertext associated data is a separate field.
1294
+
1295
+ ### CommitteeEoaSignOpts
1296
+
1297
+ Compound authorization, keeper endpoint and digest for threshold ECDSA signing.
1298
+
1299
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/ecdsa.ts#L8)
1300
+
1301
+ ```ts
1302
+ export interface CommitteeEoaSignOpts {
1303
+ fetchImpl?: typeof fetch;
1304
+ nodeUrl: string;
1305
+ committeeToken: CompoundTokenWire;
1306
+ digest: Uint8Array;
1307
+ verifierProofs?: VerifierProof[];
1308
+ requestId?: string;
1309
+ userSignature?: Uint8Array;
1310
+ targetKeykeeper?: string;
1311
+ signal?: AbortSignal;
1312
+ }
1313
+ ```
1314
+
1315
+ Fields:
1316
+
1317
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1318
+ - **` nodeUrl `**: Keeper HTTP base URL.
1319
+ - **` committeeToken `**: Authorization from awaitVerifierAgentResult; its slot selects the signing key.
1320
+ - **` digest `**: Exactly 32 bytes: the transaction signing hash, not a serialized transaction.
1321
+ - **` verifierProofs `**: Membership proofs returned with the authorization.
1322
+ - **` requestId `**: Request identifier used to correlate or resume the operation.
1323
+ - **` userSignature `**: Required only by slots configured with an additional owner-signature gate.
1324
+ - **` targetKeykeeper `**: Optional 20-byte operator address to pin the intended keeper.
1325
+ - **` signal `**: Optional signal that cancels the request.
1326
+
1327
+ ### CommitteeSignature
1328
+
1329
+ One verifier's signature within a compound token.
1330
+
1331
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L308)
1332
+
1333
+ ```ts
1334
+ export interface CommitteeSignature {
1335
+ verifierIndex: number;
1336
+ signature: Uint8Array;
1337
+ }
1338
+ ```
1339
+
1340
+ Fields:
1341
+
1342
+ - **` verifierIndex `**: Zero-based verifier registry index.
1343
+ - **` signature `**: Raw Ed25519 verifier signature.
1344
+
1345
+ ### CommitteeSignatureWire
1346
+
1347
+ One verifier's signature on the wire (hex).
1348
+
1349
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L417)
1350
+
1351
+ ```ts
1352
+ export interface CommitteeSignatureWire {
1353
+ verifier_index: number;
1354
+ signature: string;
1355
+ }
1356
+ ```
1357
+
1358
+ Fields:
1359
+
1360
+ - **` verifier_index `**: Zero-based verifier registry index.
1361
+ - **` signature `**: Hexadecimal Ed25519 verifier signature.
1362
+
1363
+ ### CommitteeSignOpts
1364
+
1365
+ Committee-authorized FROST signing request and optional verifier membership proofs.
1366
+
1367
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L382)
1368
+
1369
+ ```ts
1370
+ export interface CommitteeSignOpts {
1371
+ signal?: AbortSignal;
1372
+ fetchImpl?: typeof fetch;
1373
+ nodeUrl: string;
1374
+ committeeToken: CompoundTokenWire;
1375
+ message: Uint8Array;
1376
+ signingSet?: number[];
1377
+ userSignature?: Uint8Array;
1378
+ targetKeykeeper?: string;
1379
+ verifierProofs?: VerifierProof[];
1380
+ clientPubkey?: Uint8Array;
1381
+ clientSignature?: Uint8Array;
1382
+ evidenceCt?: string;
1383
+ }
1384
+ ```
1385
+
1386
+ Fields:
1387
+
1388
+ - **` signal `**: Optional signal that cancels the request.
1389
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1390
+ - **` nodeUrl `**: Keeper HTTP base URL.
1391
+ - **` committeeToken `**: Compound token authorizing this operation.
1392
+ - **` message `**: Raw message bytes to sign.
1393
+ - **` signingSet `**: Optional threshold participant identifiers for the signing ceremony.
1394
+ - **` userSignature `**: Optional Ed25519 owner signature over the canonical operation request.
1395
+ - **` targetKeykeeper `**: Optional 20-byte operator address to pin the intended keeper.
1396
+ - **` verifierProofs `**: Verifier membership proofs for the selected snapshot.
1397
+ - **` clientPubkey `**: 32-byte Ed25519 client public key used to verify clientSignature over the slot and token hash; supply both fields together.
1398
+ - **` clientSignature `**: Client signature over the slot and compound token binding.
1399
+ - **` evidenceCt `**: the sealed presentation beside the token (`VerifierAgentResult.evidenceCt`), posted as `evidence_ct`. Required by a keeper with `require_committee_evidence`.
1400
+
1401
+ ### CommitteeSignRequestOpts
1402
+
1403
+ Operation-specific fields for [committeeSignRequest](#committeesignrequest) (everything `committeeSign` needs
1404
+ except the token, which this resolves).
1405
+
1406
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L381)
1407
+
1408
+ ```ts
1409
+ export interface CommitteeSignRequestOpts extends RequestCommitteeTokenOpts {
1410
+ nodeUrl: string;
1411
+ message: Uint8Array;
1412
+ signingSet?: number[];
1413
+ userSignature?: Uint8Array;
1414
+ targetKeykeeper?: string;
1415
+ }
1416
+ ```
1417
+
1418
+ Fields:
1419
+
1420
+ - **` nodeUrl `**: Keeper HTTP base URL.
1421
+ - **` message `**: Raw message bytes to sign.
1422
+ - **` signingSet `**: Optional threshold participant identifiers for the signing ceremony.
1423
+ - **` userSignature `**: Optional Ed25519 owner signature over the canonical operation request.
1424
+ - **` targetKeykeeper `**: The keeper this request targets (anti-Sybil). Defaults to letting the node accept it.
1425
+ - **` chain `**: Reader methods for the beacon and slot verifier policy.
1426
+ - **` epochLag `**: Pin the draw to `latest - epochLag` (0 or 1). 1 = the previous epoch, always anchored: no wait for the accountants.
1427
+ - **` verifiers `**: The active verifier set (index to URL; add operator+pubkey to enable trustless proofs). Asking the whole set is fine - non-drawn verifiers reply 403 and are skipped.
1428
+ - **` slotId `**: 0x-prefixed 32-byte slot id.
1429
+ - **` holder `**: Holder DID (the credentials' subject).
1430
+ - **` credentials `**: Compact-JWS verifiable credentials.
1431
+ - **` holderProof `**: Proof of holder-key possession. Supply a per-verifier callback when each verifier has its own nonce store. Omitting it requires allowNoHolderProof and compatible verifier policy.
1432
+ - **` allowNoHolderProof `**: Send no holder proof. Only valid against `require_holder_binding = false`.
1433
+ - **` tokenType `**: Token type - default `'JWT'`.
1434
+ - **` ttlSecs `**: Token TTL in seconds - default 300.
1435
+ - **` nowSecs `**: Override "now" (unix seconds), mainly for tests.
1436
+ - **` clientSigner `**: sign the request bundle with the holder's key so the keeper + audit can verify the user authorized this operation. Omit to skip (keeper accepts unless it requires it).
1437
+ - **` scopedIdentity `**: Identity string for an IBE-scoped operation. Verifiers bind its hash into the token and evaluate the credential scope. Omit for group signing and group decryption; ciphertext associated data is a separate field.
1438
+
1439
+ ### CommitteeTokenResult
1440
+
1441
+ Assembled compound token, committee draw and optional proofs and client signature.
1442
+
1443
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L204)
1444
+
1445
+ ```ts
1446
+ export interface CommitteeTokenResult {
1447
+ token: CompoundTokenWire;
1448
+ committee: number;
1449
+ quorum: number;
1450
+ registrySize: number;
1451
+ seed: Uint8Array;
1452
+ epoch: number;
1453
+ verifierProofs?: VerifierProof[];
1454
+ clientPubkey?: Uint8Array;
1455
+ clientSignature?: Uint8Array;
1456
+ ruleVersion?: number;
1457
+ }
1458
+ ```
1459
+
1460
+ Fields:
1461
+
1462
+ - **` token `**: Compound committee authorization token.
1463
+ - **` committee `**: Number of verifiers selected for the committee.
1464
+ - **` quorum `**: Minimum required verifier signatures.
1465
+ - **` registrySize `**: Number of entries in the verifier registry.
1466
+ - **` seed `**: Beacon seed used for committee selection.
1467
+ - **` epoch `**: Beacon epoch used for the verifier committee draw.
1468
+ - **` verifierProofs `**: Trustless snapshot-inclusion proofs for the token's signers, when derivable; else `undefined` (the keeper then uses its configured verifier set).
1469
+ - **` clientPubkey `**: Ed25519 client public key corresponding to clientSignature, when a client signer was supplied.
1470
+ - **` clientSignature `**: Client signature over the slot and compound token binding.
1471
+ - **` ruleVersion `**: Policy version reported by the verifiers, when available. Diagnostic only; the keeper enforces the token rule hash against its current rule.
1472
+
1473
+ ### CommitteeVerifier
1474
+
1475
+ One member of the active verifier set. `operator`+`pubkey` are needed only to build the
1476
+ trustless snapshot proofs; `index`+`url` alone suffice for the keeper's configured-set path.
1477
+
1478
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L113)
1479
+
1480
+ ```ts
1481
+ export interface CommitteeVerifier {
1482
+ index: number;
1483
+ url: string;
1484
+ operator?: string;
1485
+ pubkey?: string;
1486
+ }
1487
+ ```
1488
+
1489
+ Fields:
1490
+
1491
+ - **` index `**: Zero-based verifier registry index.
1492
+ - **` url `**: Verifier HTTP base URL.
1493
+ - **` operator `**: 20-byte operator address (hex).
1494
+ - **` pubkey `**: 32-byte ed25519 signing pubkey (hex).
1495
+
1496
+ ### CompoundTokenPayload
1497
+
1498
+ The data the quorum verifiers sign over. All byte fields are 32 bytes unless noted.
1499
+
1500
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L119)
1501
+
1502
+ ```ts
1503
+ export interface CompoundTokenPayload {
1504
+ tokenType: TokenType;
1505
+ seed: Uint8Array;
1506
+ epoch: number | bigint;
1507
+ slotId: Uint8Array;
1508
+ vpHash: Uint8Array;
1509
+ holderHash: Uint8Array;
1510
+ ruleHash: Uint8Array;
1511
+ identityHash?: Uint8Array;
1512
+ requestHash?: Uint8Array;
1513
+ binding?: number;
1514
+ verifierIndexes: number[];
1515
+ iat: number | bigint;
1516
+ exp: number | bigint;
1517
+ }
1518
+ ```
1519
+
1520
+ Fields:
1521
+
1522
+ - **` tokenType `**: Compound authorization token category.
1523
+ - **` seed `**: Beacon seed used for committee selection.
1524
+ - **` epoch `**: Beacon epoch used for the verifier committee draw.
1525
+ - **` slotId `**: 32-byte slot identifier.
1526
+ - **` vpHash `**: Hash of the credential presentation bound into the token.
1527
+ - **` holderHash `**: Keccak-256 hash of the authenticated holder identifier. Stable across repeated presentations by the same holder and signed as part of the token.
1528
+ - **` ruleHash `**: Keccak-256 hash of the raw rule bytes, without salt. This differs from the salted on-chain ruleCommitment.
1529
+ - **` identityHash `**: Keccak-256 hash of the authorized IBE identity. Present only for identity-scoped operations and included in the signed encoding; identity-blind endpoints reject scoped tokens.
1530
+ - **` requestHash `**: Keccak-256 operation-binding hash. Required when keepers enforce request binding; absent only on authorization paths that do not derive it.
1531
+ - **` binding `**: How the holder's key possession was proved. `0x00` = Unbound (no proof), `0x01` = HolderKey (KB-JWT nonce verified), `0x02` = IssuerAsserted (reserved). Always present in the canonical bytes; defaults to `0x00` when omitted.
1532
+ - **` verifierIndexes `**: Indices of the selected verifier committee.
1533
+ - **` iat `**: Issue time in Unix seconds.
1534
+ - **` exp `**: Expiration time in Unix seconds.
1535
+
1536
+ ### CompoundTokenWire
1537
+
1538
+ The compound token JSON a client submits with `/v1/committee/{sign,decrypt}`.
1539
+
1540
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L425)
1541
+
1542
+ ```ts
1543
+ export interface CompoundTokenWire {
1544
+ token_type: TokenType;
1545
+ seed: string;
1546
+ epoch: number;
1547
+ slot_id: string;
1548
+ vp_hash: string;
1549
+ holder_hash: string;
1550
+ rule_hash: string;
1551
+ identity_hash?: string;
1552
+ request_hash?: string;
1553
+ binding?: string;
1554
+ verifier_indexes: number[];
1555
+ iat: number;
1556
+ exp: number;
1557
+ signatures: CommitteeSignatureWire[];
1558
+ evidence_hash?: string;
1559
+ evidence_key_id?: string;
1560
+ evidence_signatures?: CommitteeSignatureWire[];
1561
+ }
1562
+ ```
1563
+
1564
+ Fields:
1565
+
1566
+ - **` token_type `**: Compound authorization token category.
1567
+ - **` seed `**: Hexadecimal beacon seed.
1568
+ - **` epoch `**: Beacon epoch used for the verifier committee draw.
1569
+ - **` slot_id `**: Hexadecimal 32-byte slot identifier.
1570
+ - **` vp_hash `**: Hexadecimal hash of the credential presentation.
1571
+ - **` holder_hash `**: Hexadecimal hash of the authenticated holder identifier.
1572
+ - **` rule_hash `**: `keccak256` of the RAW rule (UNSALTED) - the counterpart of `DualControlPolicy.ruleHash`, never the salted `KeySlot.ruleCommitment`.
1573
+ - **` identity_hash `**: `0x..` identity binding - present iff the token is identity-scoped.
1574
+ - **` request_hash `**: `0x..` request binding hash - present when minted via the verifier-agent flow.
1575
+ - **` binding `**: `"unbound"` | `"holder_key"` | `"issuer_asserted"`.
1576
+ - **` verifier_indexes `**: Indices of the selected verifier committee.
1577
+ - **` iat `**: Issue time in Unix seconds.
1578
+ - **` exp `**: Expiration time in Unix seconds.
1579
+ - **` signatures `**: Hexadecimal verifier signatures and their registry indices.
1580
+ - **` evidence_hash `**: `0x..` keccak256 of the sealed presentation the quorum evaluated (the ciphertext travels BESIDE the token as `evidence_ct`, never inside it). Present together with `evidence_key_id` and `evidence_signatures`, or not at all. NOT part of the signed canonical bytes — each signer's [evidenceBindingMessage](#evidencebindingmessage) signature binds it.
1581
+ - **` evidence_key_id `**: `0x..` keccak256 of the accountant evidence key it is sealed to.
1582
+ - **` evidence_signatures `**: each signer's ed25519 signature over [evidenceBindingMessage](#evidencebindingmessage).
1583
+
1584
+ ### DualSignApprover
1585
+
1586
+ Ed25519 approver public key and callback that signs canonical approval bytes.
1587
+
1588
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L87)
1589
+
1590
+ ```ts
1591
+ export interface DualSignApprover {
1592
+ publicKey: Uint8Array;
1593
+ sign: (payload: Uint8Array) => Promise<Uint8Array>;
1594
+ }
1595
+ ```
1596
+
1597
+ Fields:
1598
+
1599
+ - **` publicKey `**: 32-byte Ed25519 approver public key.
1600
+ - **` sign `**: Sign the exact supplied canonical bytes; the SDK verifies the result locally.
1601
+
1602
+ ### DualSignConfig
1603
+
1604
+ Trusted slot key, keeper endpoint and approver policy for a native signing request.
1605
+
1606
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L46)
1607
+
1608
+ ```ts
1609
+ export interface DualSignConfig {
1610
+ chainId: number;
1611
+ nodeUrl: string;
1612
+ slotId: string;
1613
+ groupPublicKey: Uint8Array;
1614
+ quorum: number;
1615
+ credentialGated: boolean;
1616
+ fetchImpl?: typeof fetch;
1617
+ timeoutMs?: number;
1618
+ }
1619
+ ```
1620
+
1621
+ Fields:
1622
+
1623
+ - **` chainId `**: EVM chain identifier.
1624
+ - **` nodeUrl `**: Keeper HTTP base URL.
1625
+ - **` slotId `**: 32-byte slot identifier.
1626
+ - **` groupPublicKey `**: Expected 32-byte FROST group public key.
1627
+ - **` quorum `**: Expected approver quorum, read from the slot policy. Not the keeper threshold.
1628
+ - **` credentialGated `**: Whether every approval requires a request-bound credential authorization.
1629
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1630
+ - **` timeoutMs `**: Timeout for an individual HTTP request in milliseconds.
1631
+
1632
+ ### DualSignRequest
1633
+
1634
+ Handle for checking, approving and waiting for one native multi-approver signing request.
1635
+
1636
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L95)
1637
+
1638
+ ```ts
1639
+ export interface DualSignRequest {
1640
+ readonly requestId: string;
1641
+ readonly slotId: string;
1642
+ readonly nodeUrl: string;
1643
+ status(options?: {
1644
+ signal?: AbortSignal;
1645
+ }): Promise<DualSignStatus>;
1646
+ approve(options: {
1647
+ signer: DualSignApprover;
1648
+ authorization?: {
1649
+ token: CompoundTokenWire;
1650
+ verifierProofs: VerifierProof[];
1651
+ };
1652
+ signal?: AbortSignal;
1653
+ }): Promise<DualSignStatus>;
1654
+ wait(options?: {
1655
+ signal?: AbortSignal;
1656
+ timeoutMs?: number;
1657
+ intervalMs?: number;
1658
+ onStatus?: (status: DualSignStatus) => void;
1659
+ }): Promise<FrostSignResult>;
1660
+ }
1661
+ ```
1662
+
1663
+ Fields:
1664
+
1665
+ - **` requestId `**: Request identifier used to correlate or resume the operation.
1666
+ - **` slotId `**: 32-byte slot identifier.
1667
+ - **` nodeUrl `**: Keeper HTTP base URL.
1668
+ - **` status `**: Fetch and validate the current request state.
1669
+ - **` approve `**: Sign and submit one approval, with credential authorization when required.
1670
+ - **` wait `**: Poll until a verified signature is available or the request fails or times out.
1671
+
1672
+ ### DualSignStatus
1673
+
1674
+ Native signing request progress, verified completed signature or terminal failure.
1675
+
1676
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/dual-sign.ts#L66)
1677
+
1678
+ ```ts
1679
+ export type DualSignStatus = {
1680
+ status: 'pending' | 'signing';
1681
+ have: number;
1682
+ need: number;
1683
+ } | {
1684
+ status: 'signed';
1685
+ result: FrostSignResult;
1686
+ } | {
1687
+ status: 'failed';
1688
+ };
1689
+ ```
1690
+
1691
+ Fields:
1692
+
1693
+ - **` status `**: Lifecycle state: pending or signing until the request is signed or fails.
1694
+
1695
+ ### ExtractionEvidence
1696
+
1697
+ Keeper identity, share identifier and receipt verification status for an accepted extraction share.
1698
+
1699
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L49)
1700
+
1701
+ ```ts
1702
+ export interface ExtractionEvidence {
1703
+ operator: string;
1704
+ identifier: number;
1705
+ nodeUrl: string;
1706
+ receipt?: OperationReceipt;
1707
+ receiptStatus: 'absent' | 'unverified' | 'verified';
1708
+ }
1709
+ ```
1710
+
1711
+ Fields:
1712
+
1713
+ - **` operator `**: Keeper operator address.
1714
+ - **` identifier `**: Nonzero threshold participant identifier.
1715
+ - **` nodeUrl `**: Keeper HTTP base URL.
1716
+ - **` receipt `**: Optional keeper attestation; presence alone does not establish validity.
1717
+ - **` receiptStatus `**: Whether the receipt is absent, present but unchecked, or verified.
1718
+
1719
+ ### ExtractionKeeper
1720
+
1721
+ Assigned keeper endpoint with independently established operator, key and optional share metadata.
1722
+
1723
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L11)
1724
+
1725
+ ```ts
1726
+ export interface ExtractionKeeper {
1727
+ operator: string;
1728
+ nodeUrl: string;
1729
+ identifier?: number;
1730
+ publicKey?: Uint8Array;
1731
+ verifyingShareG2?: Uint8Array;
1732
+ }
1733
+ ```
1734
+
1735
+ Fields:
1736
+
1737
+ - **` operator `**: On-chain assigned operator address. Two URLs cannot count as two operators.
1738
+ - **` nodeUrl `**: Keeper HTTP base URL.
1739
+ - **` identifier `**: Group share identifier from trusted deployment/slot metadata, when known.
1740
+ - **` publicKey `**: Authenticated Ed25519 keeper key used to verify operation receipts.
1741
+ - **` verifyingShareG2 `**: Independently authenticated G2 verifying share, not copied from the HTTP reply.
1742
+
1743
+ ### GatherCommitteeTokenOpts
1744
+
1745
+ Verifier requests and quorum configuration for assembling a compound token.
1746
+
1747
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L276)
1748
+
1749
+ ```ts
1750
+ export interface GatherCommitteeTokenOpts {
1751
+ verifiers: Array<{
1752
+ index: number;
1753
+ url: string;
1754
+ }>;
1755
+ authorize: CommitteeAuthorizeBody;
1756
+ quorum: number;
1757
+ onReplies?: (all: CommitteeAuthorizeReply[], reference: CommitteeAuthorizeReply) => void;
1758
+ holderProofFor?: (verifier: {
1759
+ index: number;
1760
+ url: string;
1761
+ }) => Promise<string> | string;
1762
+ }
1763
+ ```
1764
+
1765
+ Fields:
1766
+
1767
+ - **` verifiers `**: Candidate verifiers to ask (index to base URL). Asking the whole registry is fine - non-drawn verifiers reply 403 and are skipped.
1768
+ - **` authorize `**: Authorization input shared across requests to the selected verifiers.
1769
+ - **` quorum `**: The slot's verifierPolicy quorum (minimum distinct committee signatures).
1770
+ - **` onReplies `**: Observe all replies and the reply used as the token payload reference. Useful when verifiers report different policy versions.
1771
+ - **` holderProofFor `**: Mint a separate holder proof for each verifier, overriding authorize.holderProof. Called concurrently; a rejection excludes that verifier while other requests continue.
1772
+
1773
+ ### HolderProofPerVerifier
1774
+
1775
+ Callback that mints a separate holder proof for each verifier.
1776
+
1777
+ A single proof cannot serve a committee: it is bound to a nonce that lives in ONE
1778
+ verifier's store, consumed atomically, so the first verifier to answer spends it and the
1779
+ rest refuse (401) under `require_holder_binding`. Pass a function instead of a string and
1780
+ the gather asks each candidate verifier for its own nonce.
1781
+
1782
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L61)
1783
+
1784
+ ```ts
1785
+ export type HolderProofPerVerifier = (verifier: CommitteeVerifier) => Promise<string> | string;
1786
+ ```
1787
+
1788
+ ### IbeExtractionPartial
1789
+
1790
+ One node's extraction partial, decoded from the wire.
1791
+
1792
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L529)
1793
+
1794
+ ```ts
1795
+ export interface IbeExtractionPartial {
1796
+ keySlotId?: string;
1797
+ receipt?: OperationReceipt;
1798
+ identifier: number;
1799
+ value: Uint8Array;
1800
+ verifyingShareG2: Uint8Array;
1801
+ epoch: number;
1802
+ nodeUrl: string;
1803
+ }
1804
+ ```
1805
+
1806
+ Fields:
1807
+
1808
+ - **` keySlotId `**: Echoed slot, when supplied by the server. Required by the strict helper.
1809
+ - **` receipt `**: Optional keeper attestation; presence alone does not establish validity.
1810
+ - **` identifier `**: The node's BLS group identifier (1..n).
1811
+ - **` value `**: 48-byte compressed G1 partial `D_i = sk_i * Q_ID`.
1812
+ - **` verifyingShareG2 `**: The node's 96-byte G2 verifying share (the dual-group reply's first half).
1813
+ - **` epoch `**: Slot epoch when served.
1814
+ - **` nodeUrl `**: The node that served it (for identifiable-abort reporting).
1815
+
1816
+ ### IbeExtractOpts
1817
+
1818
+ Committee authorization and keeper endpoints for extracting shares of one IBE identity key.
1819
+
1820
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L547)
1821
+
1822
+ ```ts
1823
+ export interface IbeExtractOpts {
1824
+ signal?: AbortSignal;
1825
+ fetchImpl?: typeof fetch;
1826
+ nodeUrls: string[];
1827
+ committeeToken: CompoundTokenWire;
1828
+ identity: string;
1829
+ userSignature?: Uint8Array;
1830
+ ciphertextEpoch?: number;
1831
+ verifierProofs?: VerifierProof[];
1832
+ clientPubkey?: Uint8Array;
1833
+ clientSignature?: Uint8Array;
1834
+ evidenceCt?: string;
1835
+ }
1836
+ ```
1837
+
1838
+ Fields:
1839
+
1840
+ - **` signal `**: Optional signal that cancels the request.
1841
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1842
+ - **` nodeUrls `**: Base URLs of at least k keeper nodes holding the slot's BLS shards.
1843
+ - **` committeeToken `**: MUST be identity-scoped: the keeper enforces `identity_hash == keccak256(identity)`.
1844
+ - **` identity `**: The requested IBE identity, in the clear (the node computes Q_ID from it).
1845
+ - **` userSignature `**: Owner signature over `keccak256("keykeeper:ibe-extract:v1" || identity)` when the slot has a registered `user_pubkey`.
1846
+ - **` ciphertextEpoch `**: Expected key epoch of the ciphertext; used to detect rotation.
1847
+ - **` verifierProofs `**: Verifier membership proofs for the selected snapshot.
1848
+ - **` clientPubkey `**: 32-byte Ed25519 client public key used to verify clientSignature; supply both fields together.
1849
+ - **` clientSignature `**: Client signature over the slot and compound token binding.
1850
+ - **` evidenceCt `**: the sealed presentation beside the token (`VerifierAgentResult.evidenceCt`), posted as `evidence_ct`. Required by a keeper with `require_committee_evidence`.
1851
+
1852
+ ### IbeExtractRequestOpts
1853
+
1854
+ Operation-specific fields for [ibeDecryptRequest](#ibedecryptrequest) / [ibeExtractRequest](#ibeextractrequest).
1855
+
1856
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L462)
1857
+
1858
+ ```ts
1859
+ export interface IbeExtractRequestOpts extends RequestCommitteeTokenOpts {
1860
+ nodeUrls: string[];
1861
+ identity: string;
1862
+ userSignature?: Uint8Array;
1863
+ ciphertextEpoch?: number;
1864
+ }
1865
+ ```
1866
+
1867
+ Fields:
1868
+
1869
+ - **` nodeUrls `**: Base URLs of at least k keeper nodes holding the slot's BLS shards.
1870
+ - **` identity `**: The IBE identity to extract for - becomes the token's `scopedIdentity`, so a quorum attests exactly this identity and the keepers enforce the hash binding.
1871
+ - **` userSignature `**: Owner signature over the identity-bound extract marker, when the slot has one.
1872
+ - **` ciphertextEpoch `**: Expected key epoch of the ciphertext; used to detect rotation.
1873
+ - **` chain `**: Reader methods for the beacon and slot verifier policy.
1874
+ - **` epochLag `**: Pin the draw to `latest - epochLag` (0 or 1). 1 = the previous epoch, always anchored: no wait for the accountants.
1875
+ - **` verifiers `**: The active verifier set (index to URL; add operator+pubkey to enable trustless proofs). Asking the whole set is fine - non-drawn verifiers reply 403 and are skipped.
1876
+ - **` slotId `**: 0x-prefixed 32-byte slot id.
1877
+ - **` holder `**: Holder DID (the credentials' subject).
1878
+ - **` credentials `**: Compact-JWS verifiable credentials.
1879
+ - **` holderProof `**: Proof of holder-key possession. Supply a per-verifier callback when each verifier has its own nonce store. Omitting it requires allowNoHolderProof and compatible verifier policy.
1880
+ - **` allowNoHolderProof `**: Send no holder proof. Only valid against `require_holder_binding = false`.
1881
+ - **` tokenType `**: Token type - default `'JWT'`.
1882
+ - **` ttlSecs `**: Token TTL in seconds - default 300.
1883
+ - **` nowSecs `**: Override "now" (unix seconds), mainly for tests.
1884
+ - **` clientSigner `**: sign the request bundle with the holder's key so the keeper + audit can verify the user authorized this operation. Omit to skip (keeper accepts unless it requires it).
1885
+ - **` scopedIdentity `**: Identity string for an IBE-scoped operation. Verifiers bind its hash into the token and evaluate the credential scope. Omit for group signing and group decryption; ciphertext associated data is a separate field.
1886
+
1887
+ ### OperationReceipt
1888
+
1889
+ A keeper's operation attestation. Presence alone does not mean verified.
1890
+
1891
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/receipts.ts#L10)
1892
+
1893
+ ```ts
1894
+ export interface OperationReceipt {
1895
+ opId: Uint8Array;
1896
+ tokenHash: Uint8Array;
1897
+ attestation: Uint8Array;
1898
+ }
1899
+ ```
1900
+
1901
+ Fields:
1902
+
1903
+ - **` opId `**: 32-byte audit operation identifier.
1904
+ - **` tokenHash `**: 32-byte compound token hash.
1905
+ - **` attestation `**: Ed25519 signature over the chain-bound operation attestation hash.
1906
+
1907
+ ### ReceiptExpectation
1908
+
1909
+ Expected operation hashes and independently authenticated keeper key for receipt verification.
1910
+
1911
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/receipts.ts#L55)
1912
+
1913
+ ```ts
1914
+ export interface ReceiptExpectation {
1915
+ chainId: number | bigint;
1916
+ slotId: Uint8Array;
1917
+ opId: Uint8Array;
1918
+ tokenHash: Uint8Array;
1919
+ keeperPublicKey: Uint8Array;
1920
+ }
1921
+ ```
1922
+
1923
+ Fields:
1924
+
1925
+ - **` chainId `**: EVM chain identifier.
1926
+ - **` slotId `**: 32-byte slot identifier.
1927
+ - **` opId `**: 32-byte audit operation identifier.
1928
+ - **` tokenHash `**: 32-byte compound token hash.
1929
+ - **` keeperPublicKey `**: Ed25519 identity key authenticated independently, e.g. from NodeRegistry.
1930
+
1931
+ ### RequestCommitteeTokenOpts
1932
+
1933
+ Chain reads, verifier directory, credential presentation and optional request-signing context.
1934
+
1935
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/request.ts#L172)
1936
+
1937
+ ```ts
1938
+ export interface RequestCommitteeTokenOpts {
1939
+ chain: CommitteeChainReads;
1940
+ epochLag?: number;
1941
+ verifiers: CommitteeVerifier[];
1942
+ slotId: string;
1943
+ holder: string;
1944
+ credentials: string[];
1945
+ holderProof?: string | HolderProofPerVerifier;
1946
+ allowNoHolderProof?: boolean;
1947
+ tokenType?: TokenType;
1948
+ ttlSecs?: number;
1949
+ nowSecs?: number;
1950
+ clientSigner?: ClientSigner;
1951
+ scopedIdentity?: string;
1952
+ }
1953
+ ```
1954
+
1955
+ Fields:
1956
+
1957
+ - **` chain `**: Reader methods for the beacon and slot verifier policy.
1958
+ - **` epochLag `**: Pin the draw to `latest - epochLag` (0 or 1). 1 = the previous epoch, always anchored: no wait for the accountants.
1959
+ - **` verifiers `**: The active verifier set (index to URL; add operator+pubkey to enable trustless proofs). Asking the whole set is fine - non-drawn verifiers reply 403 and are skipped.
1960
+ - **` slotId `**: 0x-prefixed 32-byte slot id.
1961
+ - **` holder `**: Holder DID (the credentials' subject).
1962
+ - **` credentials `**: Compact-JWS verifiable credentials.
1963
+ - **` holderProof `**: Proof of holder-key possession. Supply a per-verifier callback when each verifier has its own nonce store. Omitting it requires allowNoHolderProof and compatible verifier policy.
1964
+ - **` allowNoHolderProof `**: Send no holder proof. Only valid against `require_holder_binding = false`.
1965
+ - **` tokenType `**: Token type - default `'JWT'`.
1966
+ - **` ttlSecs `**: Token TTL in seconds - default 300.
1967
+ - **` nowSecs `**: Override "now" (unix seconds), mainly for tests.
1968
+ - **` clientSigner `**: sign the request bundle with the holder's key so the keeper + audit can verify the user authorized this operation. Omit to skip (keeper accepts unless it requires it).
1969
+ - **` scopedIdentity `**: Identity string for an IBE-scoped operation. Verifiers bind its hash into the token and evaluate the credential scope. Omit for group signing and group decryption; ciphertext associated data is a separate field.
1970
+
1971
+ ### StrictExtractionOptions
1972
+
1973
+ Expected slot epoch, threshold, chain key and keeper trust requirements for identity-key extraction.
1974
+
1975
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L25)
1976
+
1977
+ ```ts
1978
+ export interface StrictExtractionOptions extends Omit<IbeExtractOpts, 'nodeUrls' | 'ciphertextEpoch'> {
1979
+ chainId: number | bigint;
1980
+ slotId: string;
1981
+ threshold: number;
1982
+ epoch: number;
1983
+ groupPublicKey: Uint8Array;
1984
+ keepers: readonly ExtractionKeeper[];
1985
+ shareTrust: 'pinned-shares' | 'anchored-group';
1986
+ requireReceipts?: boolean;
1987
+ }
1988
+ ```
1989
+
1990
+ Fields:
1991
+
1992
+ - **` chainId `**: EVM chain identifier.
1993
+ - **` slotId `**: 32-byte slot identifier.
1994
+ - **` threshold `**: Minimum number of distinct assigned keeper shares.
1995
+ - **` epoch `**: Slot key epoch used to match the extraction shares.
1996
+ - **` groupPublicKey `**: Group key pinned to this slot/epoch on chain (96-byte G2).
1997
+ - **` keepers `**: Assigned keepers with independently established identity and key metadata.
1998
+ - **` shareTrust `**: pinned-shares requires an independently authenticated verifying share and identifier for EVERY keeper. anchored-group verifies the final key against chain, but does not claim independent provenance of each returned verifying share.
1999
+ - **` requireReceipts `**: Require a valid operation attestation from every share used. Default false.
2000
+ - **` signal `**: Optional signal that cancels the request.
2001
+ - **` identity `**: The requested IBE identity, in the clear (the node computes Q_ID from it).
2002
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
2003
+ - **` committeeToken `**: MUST be identity-scoped: the keeper enforces `identity_hash == keccak256(identity)`.
2004
+ - **` userSignature `**: Owner signature over `keccak256("keykeeper:ibe-extract:v1" || identity)` when the slot has a registered `user_pubkey`.
2005
+ - **` verifierProofs `**: Verifier membership proofs for the selected snapshot.
2006
+ - **` clientPubkey `**: 32-byte Ed25519 client public key used to verify clientSignature; supply both fields together.
2007
+ - **` clientSignature `**: Client signature over the slot and compound token binding.
2008
+ - **` evidenceCt `**: the sealed presentation beside the token (`VerifierAgentResult.evidenceCt`), posted as `evidence_ct`. Required by a keeper with `require_committee_evidence`.
2009
+
2010
+ ### StrictExtractionResult
2011
+
2012
+ Extracted identity key and provenance evidence. The caller must clear the returned key when finished.
2013
+
2014
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/extraction.ts#L63)
2015
+
2016
+ ```ts
2017
+ export interface StrictExtractionResult {
2018
+ key: Uint8Array;
2019
+ epoch: number;
2020
+ shareTrust: StrictExtractionOptions['shareTrust'];
2021
+ evidence: ExtractionEvidence[];
2022
+ }
2023
+ ```
2024
+
2025
+ Fields:
2026
+
2027
+ - **` key `**: Durable identity capability. Caller owns and must clear this buffer when finished.
2028
+ - **` epoch `**: Slot key epoch used to match the extraction shares.
2029
+ - **` shareTrust `**: Trust model used for validating the returned shares.
2030
+ - **` evidence `**: Provenance and receipt status for every accepted share.
2031
+
2032
+ ### TokenType
2033
+
2034
+ Compound authorization token category, used in the signed canonical encoding.
2035
+
2036
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L26)
2037
+
2038
+ ```ts
2039
+ export type TokenType = 'JWT' | 'refresh';
2040
+ ```
2041
+
2042
+ ### VerifiedToken
2043
+
2044
+ What a valid compound token attests.
2045
+
2046
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L324)
2047
+
2048
+ ```ts
2049
+ export interface VerifiedToken {
2050
+ slotId: Uint8Array;
2051
+ vpHash: Uint8Array;
2052
+ holderHash: Uint8Array;
2053
+ identityHash?: Uint8Array;
2054
+ epoch: number | bigint;
2055
+ tokenType: TokenType;
2056
+ verifiedSigners: number[];
2057
+ }
2058
+ ```
2059
+
2060
+ Fields:
2061
+
2062
+ - **` slotId `**: 32-byte slot identifier.
2063
+ - **` vpHash `**: Hash of the credential presentation bound into the token.
2064
+ - **` holderHash `**: The holder a quorum attested - the value a distinctness rule keys on.
2065
+ - **` identityHash `**: the quorum-attested identity binding - present iff the token is scoped.
2066
+ - **` epoch `**: Beacon epoch used for the verifier committee draw.
2067
+ - **` tokenType `**: Compound authorization token category.
2068
+ - **` verifiedSigners `**: Indices of the distinct verifier signatures that passed verification.
2069
+
2070
+ ### VerifierProof
2071
+
2072
+ Trustless verifier-set inclusion proof, passed to the keeper.
2073
+
2074
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/client.ts#L40)
2075
+
2076
+ ```ts
2077
+ export interface VerifierProof {
2078
+ verifierIndex: number;
2079
+ operator: string;
2080
+ pubkey: string;
2081
+ proof: string[];
2082
+ }
2083
+ ```
2084
+
2085
+ Fields:
2086
+
2087
+ - **` verifierIndex `**: Zero-based verifier registry index.
2088
+ - **` operator `**: 20-byte operator address (hex).
2089
+ - **` pubkey `**: 32-byte ed25519 pubkey (hex).
2090
+ - **` proof `**: Sorted-pair keccak Merkle proof (each 32-byte hex).
2091
+
2092
+ ### VerifierSet
2093
+
2094
+ The active verifier set: registry size + index to Ed25519 public key (32 bytes).
2095
+
2096
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L316)
2097
+
2098
+ ```ts
2099
+ export interface VerifierSet {
2100
+ registrySize: number;
2101
+ pubkeys: Map<number, Uint8Array>;
2102
+ }
2103
+ ```
2104
+
2105
+ Fields:
2106
+
2107
+ - **` registrySize `**: Number of entries in the verifier registry.
2108
+ - **` pubkeys `**: Registry index to authenticated Ed25519 public key mapping.
2109
+
2110
+ ### VerifyCompoundTokenOptions
2111
+
2112
+ Compound token, trusted verifier set, expected rule binding and freshness constraints.
2113
+
2114
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L352)
2115
+
2116
+ ```ts
2117
+ export interface VerifyCompoundTokenOptions {
2118
+ token: CompoundTokenPayload & {
2119
+ signatures: CommitteeSignature[];
2120
+ };
2121
+ set: VerifierSet;
2122
+ committee: number;
2123
+ quorum: number;
2124
+ now: number;
2125
+ leeway: number;
2126
+ slotRuleHash: Uint8Array;
2127
+ }
2128
+ ```
2129
+
2130
+ Fields:
2131
+
2132
+ - **` token `**: The decoded token, signatures included (see `decodeCompoundToken`).
2133
+ - **` set `**: The active verifier set to verify signatures against.
2134
+ - **` committee `**: Committee size - how many verifiers the on-chain draw selects.
2135
+ - **` quorum `**: Minimum co-signatures required *from the drawn committee*.
2136
+ - **` now `**: Current time, UNIX **seconds**.
2137
+ - **` leeway `**: Clock-skew tolerance, **seconds**, applied to both `iat` and `exp`.
2138
+ - **` slotRuleHash `**: Expected Keccak-256 hash of the raw rule bytes, without salt. Do not supply the on-chain salted ruleCommitment.
2139
+
2140
+ ### VerifyEvidenceBindingOptions
2141
+
2142
+ Inputs to [verifyEvidenceBinding](#verifyevidencebinding).
2143
+
2144
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/token.ts#L486)
2145
+
2146
+ ```ts
2147
+ export interface VerifyEvidenceBindingOptions {
2148
+ tokenHash: Uint8Array;
2149
+ evidenceHash: Uint8Array;
2150
+ evidenceKeyId: Uint8Array;
2151
+ signatures: CommitteeSignature[];
2152
+ set: VerifierSet;
2153
+ drawn: number[];
2154
+ quorum: number;
2155
+ }
2156
+ ```
2157
+
2158
+ Fields:
2159
+
2160
+ - **` tokenHash `**: 32-byte compound-token signing hash.
2161
+ - **` evidenceHash `**: 32-byte keccak256 of the sealed evidence ciphertext.
2162
+ - **` evidenceKeyId `**: 32-byte keccak256 of the accountant evidence key it is sealed to.
2163
+ - **` signatures `**: Each signer's evidence-binding signature, by verifier index.
2164
+ - **` set `**: The anchored verifier set the signer keys are read from.
2165
+ - **` drawn `**: The drawn committee (the token's `verifier_indexes`).
2166
+ - **` quorum `**: How many distinct drawn signers must verify.
2167
+
2168
+ ## Constants and ABI values
2169
+
2170
+ Shared values and contract definitions.
2171
+
2172
+ | Export | Description | Definition |
2173
+ |---|---|---|
2174
+ | `MAX_SESSION_ID_LEN` | The longest session id an `htu` may carry — mirrors `MAX_SESSION_ID_LEN`. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L24) |
2175
+ | `OAUTH_RESPONSE_PATH_PREFIX` | The OAuth response route is `{PREFIX}{sessionId}{SUFFIX}` under the agent origin. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L19) |
2176
+ | `OAUTH_RESPONSE_PATH_SUFFIX` | The trailing segment of the OAuth response route. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/committee/oauth.ts#L21) |