@veridid/poe 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +39 -2
- package/build/PoeApi.d.mts +150 -0
- package/build/PoeApi.d.mts.map +1 -0
- package/build/PoeApi.mjs +262 -0
- package/build/PoeApi.mjs.map +1 -0
- package/build/PoeEvents.d.mts +187 -0
- package/build/PoeEvents.d.mts.map +1 -0
- package/build/PoeEvents.mjs +28 -0
- package/build/PoeEvents.mjs.map +1 -0
- package/build/PoeModule.d.mts +61 -0
- package/build/PoeModule.d.mts.map +1 -0
- package/build/PoeModule.mjs +139 -0
- package/build/PoeModule.mjs.map +1 -0
- package/build/PoeModuleConfig.d.mts +71 -0
- package/build/PoeModuleConfig.d.mts.map +1 -0
- package/build/PoeRole.d.mts +21 -0
- package/build/PoeRole.d.mts.map +1 -0
- package/build/PoeRole.mjs +23 -0
- package/build/PoeRole.mjs.map +1 -0
- package/build/PoeState.d.mts +76 -0
- package/build/PoeState.d.mts.map +1 -0
- package/build/PoeState.mjs +78 -0
- package/build/PoeState.mjs.map +1 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs +10 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs +7 -0
- package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateParam.mjs +9 -0
- package/build/_virtual/_rolldown/runtime.mjs +8 -0
- package/build/errors/PoeError.d.mts +173 -0
- package/build/errors/PoeError.d.mts.map +1 -0
- package/build/errors/PoeError.mjs +147 -0
- package/build/errors/PoeError.mjs.map +1 -0
- package/build/errors/index.d.mts +1 -0
- package/build/errors/index.mjs +1 -0
- package/build/executor/ProgramExecutor.d.mts +148 -0
- package/build/executor/ProgramExecutor.d.mts.map +1 -0
- package/build/executor/ProgramExecutorRegistry.d.mts +111 -0
- package/build/executor/ProgramExecutorRegistry.d.mts.map +1 -0
- package/build/executor/ProgramExecutorRegistry.mjs +145 -0
- package/build/executor/ProgramExecutorRegistry.mjs.map +1 -0
- package/build/executor/__mocks__/MockProgramExecutor.d.mts +118 -0
- package/build/executor/__mocks__/MockProgramExecutor.d.mts.map +1 -0
- package/build/executor/__mocks__/MockProgramExecutor.mjs +96 -0
- package/build/executor/__mocks__/MockProgramExecutor.mjs.map +1 -0
- package/build/executor/__mocks__/MockProofVerifier.d.mts +97 -0
- package/build/executor/__mocks__/MockProofVerifier.d.mts.map +1 -0
- package/build/executor/__mocks__/MockProofVerifier.mjs +79 -0
- package/build/executor/__mocks__/MockProofVerifier.mjs.map +1 -0
- package/build/executor/__mocks__/index.d.mts +2 -0
- package/build/executor/index.d.mts +5 -0
- package/build/executor/index.mjs +3 -0
- package/build/handlers/AcceptPoeMessageHandler.mjs +24 -0
- package/build/handlers/AcceptPoeMessageHandler.mjs.map +1 -0
- package/build/handlers/ChallengeMessageHandler.mjs +24 -0
- package/build/handlers/ChallengeMessageHandler.mjs.map +1 -0
- package/build/handlers/CompleteMessageHandler.mjs +24 -0
- package/build/handlers/CompleteMessageHandler.mjs.map +1 -0
- package/build/handlers/DeclinePoeMessageHandler.mjs +24 -0
- package/build/handlers/DeclinePoeMessageHandler.mjs.map +1 -0
- package/build/handlers/PoeProblemReportMessageHandler.mjs +18 -0
- package/build/handlers/PoeProblemReportMessageHandler.mjs.map +1 -0
- package/build/handlers/ProposePoeMessageHandler.mjs +18 -0
- package/build/handlers/ProposePoeMessageHandler.mjs.map +1 -0
- package/build/handlers/RequestPoeMessageHandler.mjs +18 -0
- package/build/handlers/RequestPoeMessageHandler.mjs.map +1 -0
- package/build/handlers/SubmitPoeMessageHandler.mjs +18 -0
- package/build/handlers/SubmitPoeMessageHandler.mjs.map +1 -0
- package/build/handlers/index.mjs +8 -0
- package/build/index.d.mts +38 -0
- package/build/index.mjs +33 -0
- package/build/messages/AcceptPoeMessage.d.mts +48 -0
- package/build/messages/AcceptPoeMessage.d.mts.map +1 -0
- package/build/messages/AcceptPoeMessage.mjs +61 -0
- package/build/messages/AcceptPoeMessage.mjs.map +1 -0
- package/build/messages/ChallengeMessage.d.mts +46 -0
- package/build/messages/ChallengeMessage.d.mts.map +1 -0
- package/build/messages/ChallengeMessage.mjs +57 -0
- package/build/messages/ChallengeMessage.mjs.map +1 -0
- package/build/messages/CompleteMessage.d.mts +56 -0
- package/build/messages/CompleteMessage.d.mts.map +1 -0
- package/build/messages/CompleteMessage.mjs +69 -0
- package/build/messages/CompleteMessage.mjs.map +1 -0
- package/build/messages/DeclinePoeMessage.d.mts +36 -0
- package/build/messages/DeclinePoeMessage.d.mts.map +1 -0
- package/build/messages/DeclinePoeMessage.mjs +45 -0
- package/build/messages/DeclinePoeMessage.mjs.map +1 -0
- package/build/messages/PoeProblemReportMessage.d.mts +51 -0
- package/build/messages/PoeProblemReportMessage.d.mts.map +1 -0
- package/build/messages/PoeProblemReportMessage.mjs +64 -0
- package/build/messages/PoeProblemReportMessage.mjs.map +1 -0
- package/build/messages/ProposePoeMessage.d.mts +51 -0
- package/build/messages/ProposePoeMessage.d.mts.map +1 -0
- package/build/messages/ProposePoeMessage.mjs +69 -0
- package/build/messages/ProposePoeMessage.mjs.map +1 -0
- package/build/messages/RequestPoeMessage.d.mts +64 -0
- package/build/messages/RequestPoeMessage.d.mts.map +1 -0
- package/build/messages/RequestPoeMessage.mjs +82 -0
- package/build/messages/RequestPoeMessage.mjs.map +1 -0
- package/build/messages/SubmitPoeMessage.d.mts +58 -0
- package/build/messages/SubmitPoeMessage.d.mts.map +1 -0
- package/build/messages/SubmitPoeMessage.mjs +75 -0
- package/build/messages/SubmitPoeMessage.mjs.map +1 -0
- package/build/messages/index.d.mts +9 -0
- package/build/messages/index.mjs +11 -0
- package/build/models/BindingContext.d.mts +36 -0
- package/build/models/BindingContext.d.mts.map +1 -0
- package/build/models/BindingContext.mjs +42 -0
- package/build/models/BindingContext.mjs.map +1 -0
- package/build/models/ProgramExecution.d.mts +142 -0
- package/build/models/ProgramExecution.d.mts.map +1 -0
- package/build/models/ProofArtifact.d.mts +260 -0
- package/build/models/ProofArtifact.d.mts.map +1 -0
- package/build/programs/AppAttestationProgram.d.mts +179 -0
- package/build/programs/AppAttestationProgram.d.mts.map +1 -0
- package/build/programs/AppAttestationProgram.mjs +296 -0
- package/build/programs/AppAttestationProgram.mjs.map +1 -0
- package/build/programs/PoeProgram.d.mts +204 -0
- package/build/programs/PoeProgram.d.mts.map +1 -0
- package/build/programs/PoeProgram.mjs +155 -0
- package/build/programs/PoeProgram.mjs.map +1 -0
- package/build/programs/examples/MockProgram.d.mts +98 -0
- package/build/programs/examples/MockProgram.d.mts.map +1 -0
- package/build/programs/examples/MockProgram.mjs +117 -0
- package/build/programs/examples/MockProgram.mjs.map +1 -0
- package/build/programs/examples/index.d.mts +1 -0
- package/build/programs/index.d.mts +4 -0
- package/build/programs/index.mjs +3 -0
- package/build/programs/vkeys/app_attestation_vkey.mjs +136 -0
- package/build/programs/vkeys/app_attestation_vkey.mjs.map +1 -0
- package/build/registry/ProgramRegistry.d.mts +108 -0
- package/build/registry/ProgramRegistry.d.mts.map +1 -0
- package/build/registry/ProgramRegistry.mjs +87 -0
- package/build/registry/ProgramRegistry.mjs.map +1 -0
- package/build/registry/ProofSystemRegistry.d.mts +111 -0
- package/build/registry/ProofSystemRegistry.d.mts.map +1 -0
- package/build/registry/ProofSystemRegistry.mjs +87 -0
- package/build/registry/ProofSystemRegistry.mjs.map +1 -0
- package/build/registry/index.d.mts +2 -0
- package/build/registry/index.mjs +2 -0
- package/build/repository/NonceRecord.d.mts +45 -0
- package/build/repository/NonceRecord.d.mts.map +1 -0
- package/build/repository/NonceRecord.mjs +34 -0
- package/build/repository/NonceRecord.mjs.map +1 -0
- package/build/repository/NonceRepository.d.mts +41 -0
- package/build/repository/NonceRepository.d.mts.map +1 -0
- package/build/repository/NonceRepository.mjs +63 -0
- package/build/repository/NonceRepository.mjs.map +1 -0
- package/build/repository/PoeSessionRecord.d.mts +107 -0
- package/build/repository/PoeSessionRecord.d.mts.map +1 -0
- package/build/repository/PoeSessionRecord.mjs +100 -0
- package/build/repository/PoeSessionRecord.mjs.map +1 -0
- package/build/repository/PoeSessionRepository.d.mts +29 -0
- package/build/repository/PoeSessionRepository.d.mts.map +1 -0
- package/build/repository/PoeSessionRepository.mjs +46 -0
- package/build/repository/PoeSessionRepository.mjs.map +1 -0
- package/build/repository/index.d.mts +4 -0
- package/build/repository/index.mjs +6 -0
- package/build/services/AutoProofExecutionService.d.mts +2 -0
- package/build/services/AutoProofExecutionService.mjs +144 -0
- package/build/services/AutoProofExecutionService.mjs.map +1 -0
- package/build/services/ContextBindingService.d.mts +51 -0
- package/build/services/ContextBindingService.d.mts.map +1 -0
- package/build/services/ContextBindingService.mjs +92 -0
- package/build/services/ContextBindingService.mjs.map +1 -0
- package/build/services/NonceService.d.mts +74 -0
- package/build/services/NonceService.d.mts.map +1 -0
- package/build/services/NonceService.mjs +126 -0
- package/build/services/NonceService.mjs.map +1 -0
- package/build/services/PoeService.d.mts +163 -0
- package/build/services/PoeService.d.mts.map +1 -0
- package/build/services/PoeService.mjs +487 -0
- package/build/services/PoeService.mjs.map +1 -0
- package/build/services/ProofVerificationService.d.mts +87 -0
- package/build/services/ProofVerificationService.d.mts.map +1 -0
- package/build/services/ProofVerificationService.mjs +164 -0
- package/build/services/ProofVerificationService.mjs.map +1 -0
- package/build/services/index.d.mts +5 -0
- package/build/services/index.mjs +5 -0
- package/build/workflow/PoeV1Actions.d.mts +149 -0
- package/build/workflow/PoeV1Actions.d.mts.map +1 -0
- package/build/workflow/PoeV1Actions.mjs +190 -0
- package/build/workflow/PoeV1Actions.mjs.map +1 -0
- package/package.json +44 -3
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/PoeState.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* States in the Proof of Execution (PoE) protocol state machine.
|
|
4
|
+
*
|
|
5
|
+
* Requester flow:
|
|
6
|
+
* IDLE → REQUEST_SENT → (optional) CHALLENGE_SENT → SUBMIT_RECEIVED → COMPLETE | PROBLEM
|
|
7
|
+
*
|
|
8
|
+
* Prover flow:
|
|
9
|
+
* IDLE → REQUEST_RECEIVED → (optional) PROPOSED → (optional) ACCEPTED →
|
|
10
|
+
* (optional) CHALLENGE_RECEIVED → EXECUTING → SUBMIT_SENT → COMPLETE | PROBLEM
|
|
11
|
+
*/
|
|
12
|
+
declare enum PoeState {
|
|
13
|
+
/**
|
|
14
|
+
* Initial state - no protocol interaction yet
|
|
15
|
+
*/
|
|
16
|
+
Idle = "idle",
|
|
17
|
+
/**
|
|
18
|
+
* Requester has sent a proof execution request
|
|
19
|
+
*/
|
|
20
|
+
RequestSent = "request-sent",
|
|
21
|
+
/**
|
|
22
|
+
* Prover has received a proof execution request
|
|
23
|
+
*/
|
|
24
|
+
RequestReceived = "request-received",
|
|
25
|
+
/**
|
|
26
|
+
* Prover has proposed alternative program/capabilities (negotiation phase)
|
|
27
|
+
*/
|
|
28
|
+
Proposed = "proposed",
|
|
29
|
+
/**
|
|
30
|
+
* Proposal has been received by requester
|
|
31
|
+
*/
|
|
32
|
+
ProposalReceived = "proposal-received",
|
|
33
|
+
/**
|
|
34
|
+
* Program/capabilities have been accepted
|
|
35
|
+
*/
|
|
36
|
+
Accepted = "accepted",
|
|
37
|
+
/**
|
|
38
|
+
* Proposal has been declined
|
|
39
|
+
*/
|
|
40
|
+
Declined = "declined",
|
|
41
|
+
/**
|
|
42
|
+
* Requester has sent a challenge (for interactive programs)
|
|
43
|
+
*/
|
|
44
|
+
ChallengeSent = "challenge-sent",
|
|
45
|
+
/**
|
|
46
|
+
* Prover has received a challenge
|
|
47
|
+
*/
|
|
48
|
+
ChallengeReceived = "challenge-received",
|
|
49
|
+
/**
|
|
50
|
+
* Prover is executing the program
|
|
51
|
+
*/
|
|
52
|
+
Executing = "executing",
|
|
53
|
+
/**
|
|
54
|
+
* Prover has submitted the proof
|
|
55
|
+
*/
|
|
56
|
+
SubmitSent = "submit-sent",
|
|
57
|
+
/**
|
|
58
|
+
* Requester has received the proof submission
|
|
59
|
+
*/
|
|
60
|
+
SubmitReceived = "submit-received",
|
|
61
|
+
/**
|
|
62
|
+
* Protocol completed successfully
|
|
63
|
+
*/
|
|
64
|
+
Complete = "complete",
|
|
65
|
+
/**
|
|
66
|
+
* Protocol encountered a problem
|
|
67
|
+
*/
|
|
68
|
+
Problem = "problem",
|
|
69
|
+
/**
|
|
70
|
+
* Protocol was abandoned
|
|
71
|
+
*/
|
|
72
|
+
Abandoned = "abandoned"
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { PoeState };
|
|
76
|
+
//# sourceMappingURL=PoeState.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoeState.d.mts","names":[],"sources":["../src/PoeState.ts"],"mappings":";;AAUA;;;;;;;;;aAAY,QAAA;EAkCV;;;EA9BA,IAAA;EAkDA;;;EA7CA,WAAA;EAiEA;;;EA5DA,eAAA;;;;EAKA,QAAA;;;;EAKA,gBAAA;;;;EAKA,QAAA;;;;EAKA,QAAA;;;;EAKA,aAAA;;;;EAKA,iBAAA;;;;EAKA,SAAA;;;;EAKA,UAAA;;;;EAKA,cAAA;;;;EAKA,QAAA;;;;EAKA,OAAA;;;;EAKA,SAAA;AAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
//#region src/PoeState.ts
|
|
2
|
+
/**
|
|
3
|
+
* States in the Proof of Execution (PoE) protocol state machine.
|
|
4
|
+
*
|
|
5
|
+
* Requester flow:
|
|
6
|
+
* IDLE → REQUEST_SENT → (optional) CHALLENGE_SENT → SUBMIT_RECEIVED → COMPLETE | PROBLEM
|
|
7
|
+
*
|
|
8
|
+
* Prover flow:
|
|
9
|
+
* IDLE → REQUEST_RECEIVED → (optional) PROPOSED → (optional) ACCEPTED →
|
|
10
|
+
* (optional) CHALLENGE_RECEIVED → EXECUTING → SUBMIT_SENT → COMPLETE | PROBLEM
|
|
11
|
+
*/
|
|
12
|
+
let PoeState = /* @__PURE__ */ function(PoeState) {
|
|
13
|
+
/**
|
|
14
|
+
* Initial state - no protocol interaction yet
|
|
15
|
+
*/
|
|
16
|
+
PoeState["Idle"] = "idle";
|
|
17
|
+
/**
|
|
18
|
+
* Requester has sent a proof execution request
|
|
19
|
+
*/
|
|
20
|
+
PoeState["RequestSent"] = "request-sent";
|
|
21
|
+
/**
|
|
22
|
+
* Prover has received a proof execution request
|
|
23
|
+
*/
|
|
24
|
+
PoeState["RequestReceived"] = "request-received";
|
|
25
|
+
/**
|
|
26
|
+
* Prover has proposed alternative program/capabilities (negotiation phase)
|
|
27
|
+
*/
|
|
28
|
+
PoeState["Proposed"] = "proposed";
|
|
29
|
+
/**
|
|
30
|
+
* Proposal has been received by requester
|
|
31
|
+
*/
|
|
32
|
+
PoeState["ProposalReceived"] = "proposal-received";
|
|
33
|
+
/**
|
|
34
|
+
* Program/capabilities have been accepted
|
|
35
|
+
*/
|
|
36
|
+
PoeState["Accepted"] = "accepted";
|
|
37
|
+
/**
|
|
38
|
+
* Proposal has been declined
|
|
39
|
+
*/
|
|
40
|
+
PoeState["Declined"] = "declined";
|
|
41
|
+
/**
|
|
42
|
+
* Requester has sent a challenge (for interactive programs)
|
|
43
|
+
*/
|
|
44
|
+
PoeState["ChallengeSent"] = "challenge-sent";
|
|
45
|
+
/**
|
|
46
|
+
* Prover has received a challenge
|
|
47
|
+
*/
|
|
48
|
+
PoeState["ChallengeReceived"] = "challenge-received";
|
|
49
|
+
/**
|
|
50
|
+
* Prover is executing the program
|
|
51
|
+
*/
|
|
52
|
+
PoeState["Executing"] = "executing";
|
|
53
|
+
/**
|
|
54
|
+
* Prover has submitted the proof
|
|
55
|
+
*/
|
|
56
|
+
PoeState["SubmitSent"] = "submit-sent";
|
|
57
|
+
/**
|
|
58
|
+
* Requester has received the proof submission
|
|
59
|
+
*/
|
|
60
|
+
PoeState["SubmitReceived"] = "submit-received";
|
|
61
|
+
/**
|
|
62
|
+
* Protocol completed successfully
|
|
63
|
+
*/
|
|
64
|
+
PoeState["Complete"] = "complete";
|
|
65
|
+
/**
|
|
66
|
+
* Protocol encountered a problem
|
|
67
|
+
*/
|
|
68
|
+
PoeState["Problem"] = "problem";
|
|
69
|
+
/**
|
|
70
|
+
* Protocol was abandoned
|
|
71
|
+
*/
|
|
72
|
+
PoeState["Abandoned"] = "abandoned";
|
|
73
|
+
return PoeState;
|
|
74
|
+
}({});
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { PoeState };
|
|
78
|
+
//# sourceMappingURL=PoeState.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoeState.mjs","names":[],"sources":["../src/PoeState.ts"],"sourcesContent":["/**\n * States in the Proof of Execution (PoE) protocol state machine.\n *\n * Requester flow:\n * IDLE → REQUEST_SENT → (optional) CHALLENGE_SENT → SUBMIT_RECEIVED → COMPLETE | PROBLEM\n *\n * Prover flow:\n * IDLE → REQUEST_RECEIVED → (optional) PROPOSED → (optional) ACCEPTED →\n * (optional) CHALLENGE_RECEIVED → EXECUTING → SUBMIT_SENT → COMPLETE | PROBLEM\n */\nexport enum PoeState {\n /**\n * Initial state - no protocol interaction yet\n */\n Idle = 'idle',\n\n /**\n * Requester has sent a proof execution request\n */\n RequestSent = 'request-sent',\n\n /**\n * Prover has received a proof execution request\n */\n RequestReceived = 'request-received',\n\n /**\n * Prover has proposed alternative program/capabilities (negotiation phase)\n */\n Proposed = 'proposed',\n\n /**\n * Proposal has been received by requester\n */\n ProposalReceived = 'proposal-received',\n\n /**\n * Program/capabilities have been accepted\n */\n Accepted = 'accepted',\n\n /**\n * Proposal has been declined\n */\n Declined = 'declined',\n\n /**\n * Requester has sent a challenge (for interactive programs)\n */\n ChallengeSent = 'challenge-sent',\n\n /**\n * Prover has received a challenge\n */\n ChallengeReceived = 'challenge-received',\n\n /**\n * Prover is executing the program\n */\n Executing = 'executing',\n\n /**\n * Prover has submitted the proof\n */\n SubmitSent = 'submit-sent',\n\n /**\n * Requester has received the proof submission\n */\n SubmitReceived = 'submit-received',\n\n /**\n * Protocol completed successfully\n */\n Complete = 'complete',\n\n /**\n * Protocol encountered a problem\n */\n Problem = 'problem',\n\n /**\n * Protocol was abandoned\n */\n Abandoned = 'abandoned',\n}\n"],"mappings":";;;;;;;;;;;AAUA,IAAY,8CAAL;;;;AAIL;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.112.0/helpers/decorate.js
|
|
2
|
+
function __decorate(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { __decorate };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.112.0/helpers/decorateMetadata.js
|
|
2
|
+
function __decorateMetadata(k, v) {
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __decorateMetadata };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { __require };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { CredoError } from "@credo-ts/core";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/PoeError.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Standard PoE error codes per spec
|
|
6
|
+
* Used in problem-report messages and error handling
|
|
7
|
+
*/
|
|
8
|
+
declare enum PoeErrorCode {
|
|
9
|
+
ProgramNotSupported = "program_not_supported",
|
|
10
|
+
InputsInvalid = "inputs_invalid",
|
|
11
|
+
ExpiredChallenge = "expired_challenge",
|
|
12
|
+
PolicyViolation = "policy_violation",
|
|
13
|
+
InvalidProof = "invalid_proof",
|
|
14
|
+
VkUnknown = "vk_unknown",
|
|
15
|
+
ParamsUnknown = "params_unknown",
|
|
16
|
+
ContextMismatch = "context_mismatch",
|
|
17
|
+
TooLarge = "too_large",
|
|
18
|
+
RateLimited = "rate_limited",
|
|
19
|
+
AttesterUnavailable = "attester_unavailable"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Base error class for Proof of Execution (PoE) protocol errors
|
|
23
|
+
*/
|
|
24
|
+
declare class PoeError extends CredoError {
|
|
25
|
+
constructor(message: string, {
|
|
26
|
+
cause
|
|
27
|
+
}?: {
|
|
28
|
+
cause?: Error;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Error thrown when a program is not supported
|
|
33
|
+
*/
|
|
34
|
+
declare class ProgramNotSupportedError extends PoeError {
|
|
35
|
+
constructor(programId: string, {
|
|
36
|
+
cause
|
|
37
|
+
}?: {
|
|
38
|
+
cause?: Error;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Error thrown when proof verification fails
|
|
43
|
+
*/
|
|
44
|
+
declare class ProofVerificationError extends PoeError {
|
|
45
|
+
constructor(message: string, {
|
|
46
|
+
cause
|
|
47
|
+
}?: {
|
|
48
|
+
cause?: Error;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Error thrown when binding context validation fails
|
|
53
|
+
*/
|
|
54
|
+
declare class BindingContextError extends PoeError {
|
|
55
|
+
constructor(message: string, {
|
|
56
|
+
cause
|
|
57
|
+
}?: {
|
|
58
|
+
cause?: Error;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Error thrown when nonce validation fails
|
|
63
|
+
*/
|
|
64
|
+
declare class NonceError extends PoeError {
|
|
65
|
+
constructor(message: string, {
|
|
66
|
+
cause
|
|
67
|
+
}?: {
|
|
68
|
+
cause?: Error;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Error thrown when policy enforcement fails
|
|
73
|
+
*/
|
|
74
|
+
declare class PolicyViolationError extends PoeError {
|
|
75
|
+
constructor(policyId: string, reason: string, {
|
|
76
|
+
cause
|
|
77
|
+
}?: {
|
|
78
|
+
cause?: Error;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Error thrown when verifying key is not allowed
|
|
83
|
+
*/
|
|
84
|
+
declare class VerifyingKeyError extends PoeError {
|
|
85
|
+
constructor(vkHash: string, {
|
|
86
|
+
cause
|
|
87
|
+
}?: {
|
|
88
|
+
cause?: Error;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Error thrown when program parameters are not allowed
|
|
93
|
+
*/
|
|
94
|
+
declare class ProgramParametersError extends PoeError {
|
|
95
|
+
constructor(paramsHash: string, {
|
|
96
|
+
cause
|
|
97
|
+
}?: {
|
|
98
|
+
cause?: Error;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Error thrown when a message or proof has expired
|
|
103
|
+
*/
|
|
104
|
+
declare class ExpiryError extends PoeError {
|
|
105
|
+
constructor(message: string, {
|
|
106
|
+
cause
|
|
107
|
+
}?: {
|
|
108
|
+
cause?: Error;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Error thrown when inputs are invalid
|
|
113
|
+
*/
|
|
114
|
+
declare class InvalidInputsError extends PoeError {
|
|
115
|
+
constructor(message: string, {
|
|
116
|
+
cause
|
|
117
|
+
}?: {
|
|
118
|
+
cause?: Error;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Error thrown when challenge has expired
|
|
123
|
+
*/
|
|
124
|
+
declare class ExpiredChallengeError extends PoeError {
|
|
125
|
+
constructor({
|
|
126
|
+
cause
|
|
127
|
+
}?: {
|
|
128
|
+
cause?: Error;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Error thrown when context does not match
|
|
133
|
+
*/
|
|
134
|
+
declare class ContextMismatchError extends PoeError {
|
|
135
|
+
constructor(message: string, {
|
|
136
|
+
cause
|
|
137
|
+
}?: {
|
|
138
|
+
cause?: Error;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Error thrown when proof or artifact is too large
|
|
143
|
+
*/
|
|
144
|
+
declare class TooLargeError extends PoeError {
|
|
145
|
+
constructor(size: number, maxSize: number, {
|
|
146
|
+
cause
|
|
147
|
+
}?: {
|
|
148
|
+
cause?: Error;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Error thrown when rate limited
|
|
153
|
+
*/
|
|
154
|
+
declare class RateLimitedError extends PoeError {
|
|
155
|
+
constructor(retryAfter?: number, {
|
|
156
|
+
cause
|
|
157
|
+
}?: {
|
|
158
|
+
cause?: Error;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Error thrown when attester is unavailable
|
|
163
|
+
*/
|
|
164
|
+
declare class AttesterUnavailableError extends PoeError {
|
|
165
|
+
constructor(attesterDid?: string, {
|
|
166
|
+
cause
|
|
167
|
+
}?: {
|
|
168
|
+
cause?: Error;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
export { AttesterUnavailableError, BindingContextError, ContextMismatchError, ExpiredChallengeError, ExpiryError, InvalidInputsError, NonceError, PoeError, PoeErrorCode, PolicyViolationError, ProgramNotSupportedError, ProgramParametersError, ProofVerificationError, RateLimitedError, TooLargeError, VerifyingKeyError };
|
|
173
|
+
//# sourceMappingURL=PoeError.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoeError.d.mts","names":[],"sources":["../../src/errors/PoeError.ts"],"mappings":";;;;;AAMA;;aAAY,YAAA;EACV,mBAAA;EACA,aAAA;EACA,gBAAA;EACA,eAAA;EACA,YAAA;EACA,SAAA;EACA,aAAA;EACA,eAAA;EACA,QAAA;EACA,WAAA;EACA,mBAAA;AAAA;;;AAMF;cAAa,QAAA,SAAiB,UAAA;cACT,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,wBAAA,SAAiC,QAAA;cACzB,SAAA;IAAqB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQhD,sBAAA,SAA+B,QAAA;cACvB,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,mBAAA,SAA4B,QAAA;cACpB,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,UAAA,SAAmB,QAAA;cACX,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,oBAAA,SAA6B,QAAA;cACrB,QAAA,UAAkB,MAAA;IAAkB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ/D,iBAAA,SAA0B,QAAA;cAClB,MAAA;IAAkB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ7C,sBAAA,SAA+B,QAAA;cACvB,UAAA;IAAsB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQjD,WAAA,SAAoB,QAAA;cACZ,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,kBAAA,SAA2B,QAAA;cACnB,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,qBAAA,SAA8B,QAAA;;IACpB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ7B,oBAAA,SAA6B,QAAA;cACrB,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cAQ9C,aAAA,SAAsB,QAAA;cACd,IAAA,UAAc,OAAA;IAAmB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;AAvDzE;;cA+Da,gBAAA,SAAyB,QAAA;cACjB,UAAA;IAAuB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA;;;;cASlD,wBAAA,SAAiC,QAAA;cACzB,WAAA;IAAwB;EAAA;IAAW,KAAA,GAAQ,KAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { CredoError } from "@credo-ts/core";
|
|
2
|
+
|
|
3
|
+
//#region src/errors/PoeError.ts
|
|
4
|
+
/**
|
|
5
|
+
* Standard PoE error codes per spec
|
|
6
|
+
* Used in problem-report messages and error handling
|
|
7
|
+
*/
|
|
8
|
+
let PoeErrorCode = /* @__PURE__ */ function(PoeErrorCode) {
|
|
9
|
+
PoeErrorCode["ProgramNotSupported"] = "program_not_supported";
|
|
10
|
+
PoeErrorCode["InputsInvalid"] = "inputs_invalid";
|
|
11
|
+
PoeErrorCode["ExpiredChallenge"] = "expired_challenge";
|
|
12
|
+
PoeErrorCode["PolicyViolation"] = "policy_violation";
|
|
13
|
+
PoeErrorCode["InvalidProof"] = "invalid_proof";
|
|
14
|
+
PoeErrorCode["VkUnknown"] = "vk_unknown";
|
|
15
|
+
PoeErrorCode["ParamsUnknown"] = "params_unknown";
|
|
16
|
+
PoeErrorCode["ContextMismatch"] = "context_mismatch";
|
|
17
|
+
PoeErrorCode["TooLarge"] = "too_large";
|
|
18
|
+
PoeErrorCode["RateLimited"] = "rate_limited";
|
|
19
|
+
PoeErrorCode["AttesterUnavailable"] = "attester_unavailable";
|
|
20
|
+
return PoeErrorCode;
|
|
21
|
+
}({});
|
|
22
|
+
/**
|
|
23
|
+
* Base error class for Proof of Execution (PoE) protocol errors
|
|
24
|
+
*/
|
|
25
|
+
var PoeError = class extends CredoError {
|
|
26
|
+
constructor(message, { cause } = {}) {
|
|
27
|
+
super(message, { cause });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Error thrown when a program is not supported
|
|
32
|
+
*/
|
|
33
|
+
var ProgramNotSupportedError = class extends PoeError {
|
|
34
|
+
constructor(programId, { cause } = {}) {
|
|
35
|
+
super(`Program '${programId}' is not supported`, { cause });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Error thrown when proof verification fails
|
|
40
|
+
*/
|
|
41
|
+
var ProofVerificationError = class extends PoeError {
|
|
42
|
+
constructor(message, { cause } = {}) {
|
|
43
|
+
super(`Proof verification failed: ${message}`, { cause });
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Error thrown when binding context validation fails
|
|
48
|
+
*/
|
|
49
|
+
var BindingContextError = class extends PoeError {
|
|
50
|
+
constructor(message, { cause } = {}) {
|
|
51
|
+
super(`Binding context error: ${message}`, { cause });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Error thrown when nonce validation fails
|
|
56
|
+
*/
|
|
57
|
+
var NonceError = class extends PoeError {
|
|
58
|
+
constructor(message, { cause } = {}) {
|
|
59
|
+
super(`Nonce error: ${message}`, { cause });
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Error thrown when policy enforcement fails
|
|
64
|
+
*/
|
|
65
|
+
var PolicyViolationError = class extends PoeError {
|
|
66
|
+
constructor(policyId, reason, { cause } = {}) {
|
|
67
|
+
super(`Policy '${policyId}' violated: ${reason}`, { cause });
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Error thrown when verifying key is not allowed
|
|
72
|
+
*/
|
|
73
|
+
var VerifyingKeyError = class extends PoeError {
|
|
74
|
+
constructor(vkHash, { cause } = {}) {
|
|
75
|
+
super(`Verifying key '${vkHash}' is not allowed`, { cause });
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Error thrown when program parameters are not allowed
|
|
80
|
+
*/
|
|
81
|
+
var ProgramParametersError = class extends PoeError {
|
|
82
|
+
constructor(paramsHash, { cause } = {}) {
|
|
83
|
+
super(`Program parameters '${paramsHash}' are not allowed`, { cause });
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Error thrown when a message or proof has expired
|
|
88
|
+
*/
|
|
89
|
+
var ExpiryError = class extends PoeError {
|
|
90
|
+
constructor(message, { cause } = {}) {
|
|
91
|
+
super(`Expiry error: ${message}`, { cause });
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Error thrown when inputs are invalid
|
|
96
|
+
*/
|
|
97
|
+
var InvalidInputsError = class extends PoeError {
|
|
98
|
+
constructor(message, { cause } = {}) {
|
|
99
|
+
super(`Invalid inputs: ${message}`, { cause });
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Error thrown when challenge has expired
|
|
104
|
+
*/
|
|
105
|
+
var ExpiredChallengeError = class extends PoeError {
|
|
106
|
+
constructor({ cause } = {}) {
|
|
107
|
+
super("Challenge has expired", { cause });
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Error thrown when context does not match
|
|
112
|
+
*/
|
|
113
|
+
var ContextMismatchError = class extends PoeError {
|
|
114
|
+
constructor(message, { cause } = {}) {
|
|
115
|
+
super(`Context mismatch: ${message}`, { cause });
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Error thrown when proof or artifact is too large
|
|
120
|
+
*/
|
|
121
|
+
var TooLargeError = class extends PoeError {
|
|
122
|
+
constructor(size, maxSize, { cause } = {}) {
|
|
123
|
+
super(`Artifact size ${size} MB exceeds maximum ${maxSize} MB`, { cause });
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Error thrown when rate limited
|
|
128
|
+
*/
|
|
129
|
+
var RateLimitedError = class extends PoeError {
|
|
130
|
+
constructor(retryAfter, { cause } = {}) {
|
|
131
|
+
const message = retryAfter ? `Rate limited. Retry after ${retryAfter} seconds` : "Rate limited";
|
|
132
|
+
super(message, { cause });
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Error thrown when attester is unavailable
|
|
137
|
+
*/
|
|
138
|
+
var AttesterUnavailableError = class extends PoeError {
|
|
139
|
+
constructor(attesterDid, { cause } = {}) {
|
|
140
|
+
const message = attesterDid ? `Attester '${attesterDid}' is unavailable` : "Attester is unavailable";
|
|
141
|
+
super(message, { cause });
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
export { AttesterUnavailableError, BindingContextError, ContextMismatchError, ExpiredChallengeError, ExpiryError, InvalidInputsError, NonceError, PoeError, PoeErrorCode, PolicyViolationError, ProgramNotSupportedError, ProgramParametersError, ProofVerificationError, RateLimitedError, TooLargeError, VerifyingKeyError };
|
|
147
|
+
//# sourceMappingURL=PoeError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PoeError.mjs","names":[],"sources":["../../src/errors/PoeError.ts"],"sourcesContent":["import { CredoError } from '@credo-ts/core'\n\n/**\n * Standard PoE error codes per spec\n * Used in problem-report messages and error handling\n */\nexport enum PoeErrorCode {\n ProgramNotSupported = 'program_not_supported',\n InputsInvalid = 'inputs_invalid',\n ExpiredChallenge = 'expired_challenge',\n PolicyViolation = 'policy_violation',\n InvalidProof = 'invalid_proof',\n VkUnknown = 'vk_unknown',\n ParamsUnknown = 'params_unknown',\n ContextMismatch = 'context_mismatch',\n TooLarge = 'too_large',\n RateLimited = 'rate_limited',\n AttesterUnavailable = 'attester_unavailable',\n}\n\n/**\n * Base error class for Proof of Execution (PoE) protocol errors\n */\nexport class PoeError extends CredoError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(message, { cause })\n }\n}\n\n/**\n * Error thrown when a program is not supported\n */\nexport class ProgramNotSupportedError extends PoeError {\n public constructor(programId: string, { cause }: { cause?: Error } = {}) {\n super(`Program '${programId}' is not supported`, { cause })\n }\n}\n\n/**\n * Error thrown when proof verification fails\n */\nexport class ProofVerificationError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Proof verification failed: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when binding context validation fails\n */\nexport class BindingContextError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Binding context error: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when nonce validation fails\n */\nexport class NonceError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Nonce error: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when policy enforcement fails\n */\nexport class PolicyViolationError extends PoeError {\n public constructor(policyId: string, reason: string, { cause }: { cause?: Error } = {}) {\n super(`Policy '${policyId}' violated: ${reason}`, { cause })\n }\n}\n\n/**\n * Error thrown when verifying key is not allowed\n */\nexport class VerifyingKeyError extends PoeError {\n public constructor(vkHash: string, { cause }: { cause?: Error } = {}) {\n super(`Verifying key '${vkHash}' is not allowed`, { cause })\n }\n}\n\n/**\n * Error thrown when program parameters are not allowed\n */\nexport class ProgramParametersError extends PoeError {\n public constructor(paramsHash: string, { cause }: { cause?: Error } = {}) {\n super(`Program parameters '${paramsHash}' are not allowed`, { cause })\n }\n}\n\n/**\n * Error thrown when a message or proof has expired\n */\nexport class ExpiryError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Expiry error: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when inputs are invalid\n */\nexport class InvalidInputsError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Invalid inputs: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when challenge has expired\n */\nexport class ExpiredChallengeError extends PoeError {\n public constructor({ cause }: { cause?: Error } = {}) {\n super('Challenge has expired', { cause })\n }\n}\n\n/**\n * Error thrown when context does not match\n */\nexport class ContextMismatchError extends PoeError {\n public constructor(message: string, { cause }: { cause?: Error } = {}) {\n super(`Context mismatch: ${message}`, { cause })\n }\n}\n\n/**\n * Error thrown when proof or artifact is too large\n */\nexport class TooLargeError extends PoeError {\n public constructor(size: number, maxSize: number, { cause }: { cause?: Error } = {}) {\n super(`Artifact size ${size} MB exceeds maximum ${maxSize} MB`, { cause })\n }\n}\n\n/**\n * Error thrown when rate limited\n */\nexport class RateLimitedError extends PoeError {\n public constructor(retryAfter?: number, { cause }: { cause?: Error } = {}) {\n const message = retryAfter ? `Rate limited. Retry after ${retryAfter} seconds` : 'Rate limited'\n super(message, { cause })\n }\n}\n\n/**\n * Error thrown when attester is unavailable\n */\nexport class AttesterUnavailableError extends PoeError {\n public constructor(attesterDid?: string, { cause }: { cause?: Error } = {}) {\n const message = attesterDid\n ? `Attester '${attesterDid}' is unavailable`\n : 'Attester is unavailable'\n super(message, { cause })\n }\n}\n"],"mappings":";;;;;;;AAMA,IAAY,sDAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AAMF,IAAa,WAAb,cAA8B,WAAW;CACvC,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,SAAS,EAAE,OAAO,CAAC;;;;;;AAO7B,IAAa,2BAAb,cAA8C,SAAS;CACrD,AAAO,YAAY,WAAmB,EAAE,UAA6B,EAAE,EAAE;AACvE,QAAM,YAAY,UAAU,qBAAqB,EAAE,OAAO,CAAC;;;;;;AAO/D,IAAa,yBAAb,cAA4C,SAAS;CACnD,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,8BAA8B,WAAW,EAAE,OAAO,CAAC;;;;;;AAO7D,IAAa,sBAAb,cAAyC,SAAS;CAChD,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,0BAA0B,WAAW,EAAE,OAAO,CAAC;;;;;;AAOzD,IAAa,aAAb,cAAgC,SAAS;CACvC,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,gBAAgB,WAAW,EAAE,OAAO,CAAC;;;;;;AAO/C,IAAa,uBAAb,cAA0C,SAAS;CACjD,AAAO,YAAY,UAAkB,QAAgB,EAAE,UAA6B,EAAE,EAAE;AACtF,QAAM,WAAW,SAAS,cAAc,UAAU,EAAE,OAAO,CAAC;;;;;;AAOhE,IAAa,oBAAb,cAAuC,SAAS;CAC9C,AAAO,YAAY,QAAgB,EAAE,UAA6B,EAAE,EAAE;AACpE,QAAM,kBAAkB,OAAO,mBAAmB,EAAE,OAAO,CAAC;;;;;;AAOhE,IAAa,yBAAb,cAA4C,SAAS;CACnD,AAAO,YAAY,YAAoB,EAAE,UAA6B,EAAE,EAAE;AACxE,QAAM,uBAAuB,WAAW,oBAAoB,EAAE,OAAO,CAAC;;;;;;AAO1E,IAAa,cAAb,cAAiC,SAAS;CACxC,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,iBAAiB,WAAW,EAAE,OAAO,CAAC;;;;;;AAOhD,IAAa,qBAAb,cAAwC,SAAS;CAC/C,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,mBAAmB,WAAW,EAAE,OAAO,CAAC;;;;;;AAOlD,IAAa,wBAAb,cAA2C,SAAS;CAClD,AAAO,YAAY,EAAE,UAA6B,EAAE,EAAE;AACpD,QAAM,yBAAyB,EAAE,OAAO,CAAC;;;;;;AAO7C,IAAa,uBAAb,cAA0C,SAAS;CACjD,AAAO,YAAY,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACrE,QAAM,qBAAqB,WAAW,EAAE,OAAO,CAAC;;;;;;AAOpD,IAAa,gBAAb,cAAmC,SAAS;CAC1C,AAAO,YAAY,MAAc,SAAiB,EAAE,UAA6B,EAAE,EAAE;AACnF,QAAM,iBAAiB,KAAK,sBAAsB,QAAQ,MAAM,EAAE,OAAO,CAAC;;;;;;AAO9E,IAAa,mBAAb,cAAsC,SAAS;CAC7C,AAAO,YAAY,YAAqB,EAAE,UAA6B,EAAE,EAAE;EACzE,MAAM,UAAU,aAAa,6BAA6B,WAAW,YAAY;AACjF,QAAM,SAAS,EAAE,OAAO,CAAC;;;;;;AAO7B,IAAa,2BAAb,cAA8C,SAAS;CACrD,AAAO,YAAY,aAAsB,EAAE,UAA6B,EAAE,EAAE;EAC1E,MAAM,UAAU,cACZ,aAAa,YAAY,oBACzB;AACJ,QAAM,SAAS,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { AttesterUnavailableError, BindingContextError, ContextMismatchError, ExpiredChallengeError, ExpiryError, InvalidInputsError, NonceError, PoeError, PoeErrorCode, PolicyViolationError, ProgramNotSupportedError, ProgramParametersError, ProofVerificationError, RateLimitedError, TooLargeError, VerifyingKeyError } from "./PoeError.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { AttesterUnavailableError, BindingContextError, ContextMismatchError, ExpiredChallengeError, ExpiryError, InvalidInputsError, NonceError, PoeError, PoeErrorCode, PolicyViolationError, ProgramNotSupportedError, ProgramParametersError, ProofVerificationError, RateLimitedError, TooLargeError, VerifyingKeyError } from "./PoeError.mjs";
|