zksync-sso 0.4.0 → 0.4.2-beta.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.
Files changed (57) hide show
  1. package/dist/_cjs/abi/GuardianRecoveryValidator.js +42 -47
  2. package/dist/_cjs/abi/GuardianRecoveryValidator.js.map +1 -1
  3. package/dist/_cjs/abi/OidcKeyRegistry.js +30 -30
  4. package/dist/_cjs/abi/OidcKeyRegistry.js.map +1 -1
  5. package/dist/_cjs/abi/OidcRecoveryValidator.js +144 -22
  6. package/dist/_cjs/abi/OidcRecoveryValidator.js.map +1 -1
  7. package/dist/_cjs/abi/SessionKeyValidator.js +46 -11
  8. package/dist/_cjs/abi/SessionKeyValidator.js.map +1 -1
  9. package/dist/_cjs/abi/SsoAccount.js +84 -18
  10. package/dist/_cjs/abi/SsoAccount.js.map +1 -1
  11. package/dist/_cjs/abi/WebAuthValidator.js +6 -6
  12. package/dist/_cjs/abi/WebAuthValidator.js.map +1 -1
  13. package/dist/_cjs/abi/index.js +1 -5
  14. package/dist/_cjs/abi/index.js.map +1 -1
  15. package/dist/_esm/abi/GuardianRecoveryValidator.js +42 -47
  16. package/dist/_esm/abi/GuardianRecoveryValidator.js.map +1 -1
  17. package/dist/_esm/abi/OidcKeyRegistry.js +30 -30
  18. package/dist/_esm/abi/OidcKeyRegistry.js.map +1 -1
  19. package/dist/_esm/abi/OidcRecoveryValidator.js +144 -22
  20. package/dist/_esm/abi/OidcRecoveryValidator.js.map +1 -1
  21. package/dist/_esm/abi/SessionKeyValidator.js +46 -11
  22. package/dist/_esm/abi/SessionKeyValidator.js.map +1 -1
  23. package/dist/_esm/abi/SsoAccount.js +84 -18
  24. package/dist/_esm/abi/SsoAccount.js.map +1 -1
  25. package/dist/_esm/abi/WebAuthValidator.js +6 -6
  26. package/dist/_esm/abi/WebAuthValidator.js.map +1 -1
  27. package/dist/_esm/abi/index.js +0 -2
  28. package/dist/_esm/abi/index.js.map +1 -1
  29. package/dist/_types/abi/GuardianRecoveryValidator.d.ts +35 -39
  30. package/dist/_types/abi/GuardianRecoveryValidator.d.ts.map +1 -1
  31. package/dist/_types/abi/OidcKeyRegistry.d.ts +27 -27
  32. package/dist/_types/abi/OidcRecoveryValidator.d.ts +117 -20
  33. package/dist/_types/abi/OidcRecoveryValidator.d.ts.map +1 -1
  34. package/dist/_types/abi/SessionKeyValidator.d.ts +34 -8
  35. package/dist/_types/abi/SessionKeyValidator.d.ts.map +1 -1
  36. package/dist/_types/abi/SsoAccount.d.ts +66 -14
  37. package/dist/_types/abi/SsoAccount.d.ts.map +1 -1
  38. package/dist/_types/abi/WebAuthValidator.d.ts +6 -6
  39. package/dist/_types/abi/index.d.ts +0 -2
  40. package/dist/_types/abi/index.d.ts.map +1 -1
  41. package/dist/_types/client-auth-server/Signer.d.ts +2 -2
  42. package/dist/_types/client-auth-server/WalletProvider.d.ts +2 -2
  43. package/package.json +2 -3
  44. package/src/abi/GuardianRecoveryValidator.ts +42 -47
  45. package/src/abi/OidcKeyRegistry.ts +30 -30
  46. package/src/abi/OidcRecoveryValidator.ts +144 -22
  47. package/src/abi/SessionKeyValidator.ts +46 -11
  48. package/src/abi/SsoAccount.ts +84 -18
  49. package/src/abi/WebAuthValidator.ts +6 -6
  50. package/src/abi/index.ts +0 -2
  51. package/dist/_cjs/abi/WebAuthModule.js +0 -301
  52. package/dist/_cjs/abi/WebAuthModule.js.map +0 -1
  53. package/dist/_esm/abi/WebAuthModule.js +0 -298
  54. package/dist/_esm/abi/WebAuthModule.js.map +0 -1
  55. package/dist/_types/abi/WebAuthModule.d.ts +0 -228
  56. package/dist/_types/abi/WebAuthModule.d.ts.map +0 -1
  57. package/src/abi/WebAuthModule.ts +0 -297
@@ -1,22 +1,22 @@
1
1
  export declare const WebAuthValidatorAbi: readonly [{
2
2
  readonly inputs: readonly [];
3
- readonly name: "ACCOUNT_EXISTS";
3
+ readonly name: "WEBAUTHN_ACCOUNT_EXISTS";
4
4
  readonly type: "error";
5
5
  }, {
6
6
  readonly inputs: readonly [];
7
- readonly name: "BAD_CREDENTIAL_ID_LENGTH";
7
+ readonly name: "WEBAUTHN_BAD_CREDENTIAL_ID_LENGTH";
8
8
  readonly type: "error";
9
9
  }, {
10
10
  readonly inputs: readonly [];
11
- readonly name: "BAD_DOMAIN_LENGTH";
11
+ readonly name: "WEBAUTHN_BAD_DOMAIN_LENGTH";
12
12
  readonly type: "error";
13
13
  }, {
14
14
  readonly inputs: readonly [];
15
- readonly name: "EMPTY_KEY";
15
+ readonly name: "WEBAUTHN_EMPTY_KEY";
16
16
  readonly type: "error";
17
17
  }, {
18
18
  readonly inputs: readonly [];
19
- readonly name: "KEY_EXISTS";
19
+ readonly name: "WEBAUTHN_KEY_EXISTS";
20
20
  readonly type: "error";
21
21
  }, {
22
22
  readonly inputs: readonly [{
@@ -24,7 +24,7 @@ export declare const WebAuthValidatorAbi: readonly [{
24
24
  readonly name: "account";
25
25
  readonly type: "address";
26
26
  }];
27
- readonly name: "NOT_KEY_OWNER";
27
+ readonly name: "WEBAUTHN_NOT_KEY_OWNER";
28
28
  readonly type: "error";
29
29
  }, {
30
30
  readonly anonymous: false;
@@ -1,10 +1,8 @@
1
1
  export { AAFactoryAbi } from "./AAFactory.js";
2
- export { GuardianRecoveryModuleAbi } from "./GuardianRecoveryModule.js";
3
2
  export { GuardianRecoveryValidatorAbi } from "./GuardianRecoveryValidator.js";
4
3
  export { OidcKeyRegistryAbi } from "./OidcKeyRegistry.js";
5
4
  export { OidcRecoveryValidatorAbi } from "./OidcRecoveryValidator.js";
6
5
  export { SessionKeyValidatorAbi } from "./SessionKeyValidator.js";
7
6
  export { SsoAccountAbi } from "./SsoAccount.js";
8
- export { WebAuthModuleAbi } from "./WebAuthModule.js";
9
7
  export { WebAuthValidatorAbi } from "./WebAuthValidator.js";
10
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -7502,10 +7502,10 @@ export declare class Signer implements SignerInterface {
7502
7502
  [x: `bytes3[${string}]`]: undefined;
7503
7503
  [x: `bytes16[${string}]`]: undefined;
7504
7504
  [x: `bytes5[${string}]`]: undefined;
7505
- [x: `bytes31[${string}]`]: undefined;
7506
7505
  [x: `bytes23[${string}]`]: undefined;
7507
7506
  [x: `bytes24[${string}]`]: undefined;
7508
7507
  [x: `bytes25[${string}]`]: undefined;
7508
+ [x: `bytes31[${string}]`]: undefined;
7509
7509
  [x: `bytes7[${string}]`]: undefined;
7510
7510
  [x: `bytes15[${string}]`]: undefined;
7511
7511
  [x: `bytes6[${string}]`]: undefined;
@@ -7604,10 +7604,10 @@ export declare class Signer implements SignerInterface {
7604
7604
  bytes3?: undefined;
7605
7605
  bytes16?: undefined;
7606
7606
  bytes5?: undefined;
7607
- bytes31?: undefined;
7608
7607
  bytes23?: undefined;
7609
7608
  bytes24?: undefined;
7610
7609
  bytes25?: undefined;
7610
+ bytes31?: undefined;
7611
7611
  bytes7?: undefined;
7612
7612
  bytes15?: undefined;
7613
7613
  bytes6?: undefined;
@@ -7479,10 +7479,10 @@ export declare class WalletProvider extends EventEmitter implements ProviderInte
7479
7479
  [x: `bytes3[${string}]`]: undefined;
7480
7480
  [x: `bytes16[${string}]`]: undefined;
7481
7481
  [x: `bytes5[${string}]`]: undefined;
7482
- [x: `bytes31[${string}]`]: undefined;
7483
7482
  [x: `bytes23[${string}]`]: undefined;
7484
7483
  [x: `bytes24[${string}]`]: undefined;
7485
7484
  [x: `bytes25[${string}]`]: undefined;
7485
+ [x: `bytes31[${string}]`]: undefined;
7486
7486
  [x: `bytes7[${string}]`]: undefined;
7487
7487
  [x: `bytes15[${string}]`]: undefined;
7488
7488
  [x: `bytes6[${string}]`]: undefined;
@@ -7581,10 +7581,10 @@ export declare class WalletProvider extends EventEmitter implements ProviderInte
7581
7581
  bytes3?: undefined;
7582
7582
  bytes16?: undefined;
7583
7583
  bytes5?: undefined;
7584
- bytes31?: undefined;
7585
7584
  bytes23?: undefined;
7586
7585
  bytes24?: undefined;
7587
7586
  bytes25?: undefined;
7587
+ bytes31?: undefined;
7588
7588
  bytes7?: undefined;
7589
7589
  bytes15?: undefined;
7590
7590
  bytes6?: undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zksync-sso",
3
3
  "description": "ZKsync Smart Sign On SDK",
4
- "version": "0.4.0",
4
+ "version": "0.4.2-beta.0",
5
5
  "license": "MIT",
6
6
  "author": "Matter Labs",
7
7
  "repository": {
@@ -169,7 +169,6 @@
169
169
  "abitype": "^1.0.6",
170
170
  "bigint-conversion": "^2.4.3",
171
171
  "buffer": "^6.0.3",
172
- "ms": "^2.1.3",
173
- "zksync-sso-circuits": "workspace:*"
172
+ "ms": "^2.1.3"
174
173
  }
175
174
  }
@@ -4,17 +4,6 @@ export const GuardianRecoveryValidatorAbi = [
4
4
  stateMutability: "nonpayable",
5
5
  type: "constructor",
6
6
  },
7
- {
8
- inputs: [
9
- {
10
- internalType: "uint256",
11
- name: "value",
12
- type: "uint256",
13
- },
14
- ],
15
- name: "ADDRESS_CAST_OVERFLOW",
16
- type: "error",
17
- },
18
7
  {
19
8
  inputs: [
20
9
  {
@@ -28,7 +17,7 @@ export const GuardianRecoveryValidatorAbi = [
28
17
  type: "address",
29
18
  },
30
19
  ],
31
- name: "AccountAlreadyGuardedByGuardian",
20
+ name: "ACCOUNT_ALREADY_GUARDED",
32
21
  type: "error",
33
22
  },
34
23
  {
@@ -44,75 +33,70 @@ export const GuardianRecoveryValidatorAbi = [
44
33
  type: "address",
45
34
  },
46
35
  ],
47
- name: "AccountNotGuardedByAddress",
48
- type: "error",
49
- },
50
- {
51
- inputs: [],
52
- name: "AccountRecoveryInProgress",
53
- type: "error",
54
- },
55
- {
56
- inputs: [],
57
- name: "GuardianCannotBeSelf",
36
+ name: "ACCOUNT_NOT_GUARDED_BY_ADDRESS",
58
37
  type: "error",
59
38
  },
60
39
  {
61
40
  inputs: [
62
41
  {
63
- internalType: "address",
64
- name: "guardian",
65
- type: "address",
42
+ internalType: "uint256",
43
+ name: "value",
44
+ type: "uint256",
66
45
  },
67
46
  ],
68
- name: "GuardianNotFound",
47
+ name: "ADDRESS_CAST_OVERFLOW",
69
48
  type: "error",
70
49
  },
71
50
  {
72
- inputs: [
73
- {
74
- internalType: "address",
75
- name: "guardian",
76
- type: "address",
77
- },
78
- ],
79
- name: "GuardianNotProposed",
51
+ inputs: [],
52
+ name: "GUARDIAN_CANNOT_BE_SELF",
80
53
  type: "error",
81
54
  },
82
55
  {
83
56
  inputs: [],
84
- name: "InvalidAccountToGuardAddress",
57
+ name: "GUARDIAN_INVALID_ACCOUNT",
85
58
  type: "error",
86
59
  },
87
60
  {
88
61
  inputs: [],
89
- name: "InvalidAccountToRecoverAddress",
62
+ name: "GUARDIAN_INVALID_ADDRESS",
90
63
  type: "error",
91
64
  },
92
65
  {
93
66
  inputs: [],
94
- name: "InvalidGuardianAddress",
67
+ name: "GUARDIAN_INVALID_RECOVERY_CALL",
95
68
  type: "error",
96
69
  },
97
70
  {
98
71
  inputs: [],
99
- name: "InvalidWebAuthValidatorAddress",
72
+ name: "GUARDIAN_INVALID_WEBAUTH_VALIDATOR",
100
73
  type: "error",
101
74
  },
102
75
  {
103
76
  inputs: [
104
77
  {
105
- internalType: "uint256",
106
- name: "chainId",
107
- type: "uint256",
78
+ internalType: "address",
79
+ name: "guardian",
80
+ type: "address",
108
81
  },
109
82
  ],
110
- name: "NO_TIMESTAMP_ASSERTER",
83
+ name: "GUARDIAN_NOT_FOUND",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "address",
90
+ name: "guardian",
91
+ type: "address",
92
+ },
93
+ ],
94
+ name: "GUARDIAN_NOT_PROPOSED",
111
95
  type: "error",
112
96
  },
113
97
  {
114
98
  inputs: [],
115
- name: "NonFunctionCallTransaction",
99
+ name: "GUARDIAN_RECOVERY_IN_PROGRESS",
116
100
  type: "error",
117
101
  },
118
102
  {
@@ -123,12 +107,23 @@ export const GuardianRecoveryValidatorAbi = [
123
107
  type: "bytes32",
124
108
  },
125
109
  ],
126
- name: "UnknownHashedOriginDomain",
110
+ name: "GUARDIAN_UNKNOWN_DOMAIN",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "uint256",
117
+ name: "chainId",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ name: "NO_TIMESTAMP_ASSERTER",
127
122
  type: "error",
128
123
  },
129
124
  {
130
125
  inputs: [],
131
- name: "WebAuthValidatorNotEnabled",
126
+ name: "WEBAUTH_VALIDATOR_NOT_INSTALLED",
132
127
  type: "error",
133
128
  },
134
129
  {
@@ -597,7 +592,7 @@ export const GuardianRecoveryValidatorAbi = [
597
592
  ],
598
593
  name: "onInstall",
599
594
  outputs: [],
600
- stateMutability: "nonpayable",
595
+ stateMutability: "view",
601
596
  type: "function",
602
597
  },
603
598
  {
@@ -12,23 +12,23 @@ export const OidcKeyRegistryAbi = [
12
12
  type: "bytes32",
13
13
  },
14
14
  ],
15
- name: "EvenRsaModulus",
15
+ name: "OIDC_EVEN_RSA_MODULUS",
16
16
  type: "error",
17
17
  },
18
18
  {
19
19
  inputs: [
20
20
  {
21
21
  internalType: "bytes32",
22
- name: "expectedIssHash",
22
+ name: "expectedIssuerHash",
23
23
  type: "bytes32",
24
24
  },
25
25
  {
26
26
  internalType: "bytes32",
27
- name: "actualIssHash",
27
+ name: "actualIssuerHash",
28
28
  type: "bytes32",
29
29
  },
30
30
  ],
31
- name: "IssuerHashMismatch",
31
+ name: "OIDC_ISSUER_HASH_MISMATCH",
32
32
  type: "error",
33
33
  },
34
34
  {
@@ -39,25 +39,30 @@ export const OidcKeyRegistryAbi = [
39
39
  type: "uint256",
40
40
  },
41
41
  ],
42
- name: "KeyCountLimitExceeded",
42
+ name: "OIDC_KEY_COUNT_LIMIT_EXCEEDED",
43
43
  type: "error",
44
44
  },
45
45
  {
46
46
  inputs: [
47
47
  {
48
- internalType: "uint256",
49
- name: "index",
50
- type: "uint256",
48
+ internalType: "bytes32",
49
+ name: "kid",
50
+ type: "bytes32",
51
+ },
52
+ {
53
+ internalType: "bytes32",
54
+ name: "issuerHash",
55
+ type: "bytes32",
51
56
  },
52
57
  ],
53
- name: "KeyIdCannotBeZero",
58
+ name: "OIDC_KEY_ID_ALREADY_EXISTS",
54
59
  type: "error",
55
60
  },
56
61
  {
57
62
  inputs: [
58
63
  {
59
64
  internalType: "bytes32",
60
- name: "issHash",
65
+ name: "issuerHash",
61
66
  type: "bytes32",
62
67
  },
63
68
  {
@@ -66,7 +71,7 @@ export const OidcKeyRegistryAbi = [
66
71
  type: "bytes32",
67
72
  },
68
73
  ],
69
- name: "KeyNotFound",
74
+ name: "OIDC_KEY_NOT_FOUND",
70
75
  type: "error",
71
76
  },
72
77
  {
@@ -77,23 +82,28 @@ export const OidcKeyRegistryAbi = [
77
82
  type: "bytes32",
78
83
  },
79
84
  {
80
- internalType: "bytes32",
81
- name: "issHash",
82
- type: "bytes32",
85
+ internalType: "uint256",
86
+ name: "chunkIndex",
87
+ type: "uint256",
88
+ },
89
+ {
90
+ internalType: "uint256",
91
+ name: "chunkValue",
92
+ type: "uint256",
83
93
  },
84
94
  ],
85
- name: "KidAlreadyRegistered",
95
+ name: "OIDC_MODULUS_CHUNK_TOO_LARGE",
86
96
  type: "error",
87
97
  },
88
98
  {
89
99
  inputs: [
90
100
  {
91
- internalType: "bytes32",
92
- name: "kid",
93
- type: "bytes32",
101
+ internalType: "uint256",
102
+ name: "index",
103
+ type: "uint256",
94
104
  },
95
105
  ],
96
- name: "ModulusCannotBeZero",
106
+ name: "OIDC_ZERO_KEY_ID",
97
107
  type: "error",
98
108
  },
99
109
  {
@@ -103,18 +113,8 @@ export const OidcKeyRegistryAbi = [
103
113
  name: "kid",
104
114
  type: "bytes32",
105
115
  },
106
- {
107
- internalType: "uint256",
108
- name: "chunkIndex",
109
- type: "uint256",
110
- },
111
- {
112
- internalType: "uint256",
113
- name: "chunkValue",
114
- type: "uint256",
115
- },
116
116
  ],
117
- name: "ModulusChunkTooLarge",
117
+ name: "OIDC_ZERO_MODULUS",
118
118
  type: "error",
119
119
  },
120
120
  {
@@ -15,6 +15,17 @@ export const OidcRecoveryValidatorAbi = [
15
15
  name: "ADDRESS_CAST_OVERFLOW",
16
16
  type: "error",
17
17
  },
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "chainId",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ name: "NO_TIMESTAMP_ASSERTER",
27
+ type: "error",
28
+ },
18
29
  {
19
30
  inputs: [
20
31
  {
@@ -23,44 +34,79 @@ export const OidcRecoveryValidatorAbi = [
23
34
  type: "bytes32",
24
35
  },
25
36
  ],
26
- name: "AddressNotFoundForDigest",
37
+ name: "OIDC_ADDRESS_NOT_FOUND",
27
38
  type: "error",
28
39
  },
29
40
  {
30
41
  inputs: [
31
42
  {
32
43
  internalType: "address",
33
- name: "account",
44
+ name: "currentAccount",
34
45
  type: "address",
35
46
  },
36
47
  ],
37
- name: "NoOidcDataForGivenAddress",
48
+ name: "OIDC_DIGEST_TAKEN",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "OIDC_EMPTY_DIGEST",
54
+ type: "error",
55
+ },
56
+ {
57
+ inputs: [],
58
+ name: "OIDC_EMPTY_ISSUER",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "OIDC_ISSUER_TOO_LONG",
38
64
  type: "error",
39
65
  },
40
66
  {
41
67
  inputs: [
42
68
  {
43
- internalType: "bytes32",
44
- name: "digest",
45
- type: "bytes32",
69
+ internalType: "address",
70
+ name: "account",
71
+ type: "address",
46
72
  },
47
73
  ],
48
- name: "OidcDigestAlreadyRegisteredInAnotherAccount",
74
+ name: "OIDC_NO_DATA_FOR_ACCOUNT",
75
+ type: "error",
76
+ },
77
+ {
78
+ inputs: [],
79
+ name: "OIDC_NO_RECOVERY_STARTED",
49
80
  type: "error",
50
81
  },
51
82
  {
52
83
  inputs: [],
53
- name: "TimeLimitExpired",
84
+ name: "OIDC_TIME_LIMIT_EXPIRED",
54
85
  type: "error",
55
86
  },
56
87
  {
57
88
  inputs: [],
58
- name: "ValidateSignatureNotImplemented",
89
+ name: "OIDC_ZERO_KEY_REGISTRY",
59
90
  type: "error",
60
91
  },
61
92
  {
62
93
  inputs: [],
63
- name: "ZkProofVerificationFailed",
94
+ name: "OIDC_ZERO_VERIFIER",
95
+ type: "error",
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: "OIDC_ZERO_WEBAUTH_VALIDATOR",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: "OIDC_ZKP_VERIFICATION_FAILED",
105
+ type: "error",
106
+ },
107
+ {
108
+ inputs: [],
109
+ name: "WEBAUTH_VALIDATOR_NOT_INSTALLED",
64
110
  type: "error",
65
111
  },
66
112
  {
@@ -127,26 +173,90 @@ export const OidcRecoveryValidatorAbi = [
127
173
  type: "event",
128
174
  },
129
175
  {
176
+ anonymous: false,
130
177
  inputs: [
131
178
  {
179
+ indexed: true,
180
+ internalType: "address",
181
+ name: "targetAccount",
182
+ type: "address",
183
+ },
184
+ {
185
+ indexed: false,
132
186
  internalType: "bytes32",
133
- name: "oidcDigest",
187
+ name: "pendingPasskeyHash",
134
188
  type: "bytes32",
135
189
  },
190
+ ],
191
+ name: "RecoveryCancelled",
192
+ type: "event",
193
+ },
194
+ {
195
+ anonymous: false,
196
+ inputs: [
136
197
  {
137
- internalType: "string",
138
- name: "iss",
139
- type: "string",
198
+ indexed: true,
199
+ internalType: "address",
200
+ name: "initiator",
201
+ type: "address",
202
+ },
203
+ {
204
+ indexed: true,
205
+ internalType: "address",
206
+ name: "targetAccount",
207
+ type: "address",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "bytes32",
212
+ name: "pendingPasskeyHash",
213
+ type: "bytes32",
140
214
  },
141
215
  ],
142
- name: "addOidcAccount",
216
+ name: "RecoveryStarted",
217
+ type: "event",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "MAX_ISS_LENGTH",
143
222
  outputs: [
144
223
  {
145
- internalType: "bool",
224
+ internalType: "uint256",
146
225
  name: "",
147
- type: "bool",
226
+ type: "uint256",
148
227
  },
149
228
  ],
229
+ stateMutability: "view",
230
+ type: "function",
231
+ },
232
+ {
233
+ inputs: [],
234
+ name: "PUB_SIGNALS_LENGTH",
235
+ outputs: [
236
+ {
237
+ internalType: "uint256",
238
+ name: "",
239
+ type: "uint256",
240
+ },
241
+ ],
242
+ stateMutability: "view",
243
+ type: "function",
244
+ },
245
+ {
246
+ inputs: [
247
+ {
248
+ internalType: "bytes32",
249
+ name: "oidcDigest",
250
+ type: "bytes32",
251
+ },
252
+ {
253
+ internalType: "string",
254
+ name: "iss",
255
+ type: "string",
256
+ },
257
+ ],
258
+ name: "addOidcAccount",
259
+ outputs: [],
150
260
  stateMutability: "nonpayable",
151
261
  type: "function",
152
262
  },
@@ -169,6 +279,13 @@ export const OidcRecoveryValidatorAbi = [
169
279
  stateMutability: "view",
170
280
  type: "function",
171
281
  },
282
+ {
283
+ inputs: [],
284
+ name: "cancelRecovery",
285
+ outputs: [],
286
+ stateMutability: "nonpayable",
287
+ type: "function",
288
+ },
172
289
  {
173
290
  inputs: [],
174
291
  name: "deleteOidcAccount",
@@ -204,7 +321,7 @@ export const OidcRecoveryValidatorAbi = [
204
321
  name: "keyRegistry",
205
322
  outputs: [
206
323
  {
207
- internalType: "address",
324
+ internalType: "contract IOidcKeyRegistry",
208
325
  name: "",
209
326
  type: "address",
210
327
  },
@@ -244,6 +361,11 @@ export const OidcRecoveryValidatorAbi = [
244
361
  name: "pendingPasskeyHash",
245
362
  type: "bytes32",
246
363
  },
364
+ {
365
+ internalType: "uint256",
366
+ name: "recoveryStartedAt",
367
+ type: "uint256",
368
+ },
247
369
  {
248
370
  internalType: "uint256",
249
371
  name: "recoverNonce",
@@ -255,7 +377,7 @@ export const OidcRecoveryValidatorAbi = [
255
377
  type: "uint256",
256
378
  },
257
379
  ],
258
- internalType: "struct OidcRecoveryValidator.OidcData",
380
+ internalType: "struct IOidcRecoveryValidator.OidcData",
259
381
  name: "",
260
382
  type: "tuple",
261
383
  },
@@ -311,7 +433,7 @@ export const OidcRecoveryValidatorAbi = [
311
433
  type: "uint256[2]",
312
434
  },
313
435
  ],
314
- internalType: "struct OidcRecoveryValidator.ZkProof",
436
+ internalType: "struct IOidcRecoveryValidator.ZkProof",
315
437
  name: "zkProof",
316
438
  type: "tuple",
317
439
  },
@@ -331,7 +453,7 @@ export const OidcRecoveryValidatorAbi = [
331
453
  type: "uint256",
332
454
  },
333
455
  ],
334
- internalType: "struct OidcRecoveryValidator.StartRecoveryData",
456
+ internalType: "struct IOidcRecoveryValidator.StartRecoveryData",
335
457
  name: "data",
336
458
  type: "tuple",
337
459
  },
@@ -500,7 +622,7 @@ export const OidcRecoveryValidatorAbi = [
500
622
  name: "verifier",
501
623
  outputs: [
502
624
  {
503
- internalType: "address",
625
+ internalType: "contract IZkVerifier",
504
626
  name: "",
505
627
  type: "address",
506
628
  },