@libid/contracts 0.21.0 → 0.23.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/README.md +12 -5
- package/dist/abis/bindErrors.d.ts +80 -0
- package/dist/abis/bindErrors.d.ts.map +1 -1
- package/dist/abis/bindErrors.js +109 -1
- package/dist/abis/bindErrors.js.map +1 -1
- package/dist/abis/ceremonyPayloads.d.ts +3 -3
- package/dist/abis/ceremonyPayloads.js +3 -3
- package/dist/abis/ceremonyPayloads.js.map +1 -1
- package/dist/abis/googleJwtRoots.d.ts +11 -7
- package/dist/abis/googleJwtRoots.d.ts.map +1 -1
- package/dist/abis/googleJwtRoots.js +14 -8
- package/dist/abis/googleJwtRoots.js.map +1 -1
- package/dist/abis/identityRegistry.d.ts +50 -0
- package/dist/abis/identityRegistry.d.ts.map +1 -1
- package/dist/abis/identityRegistry.js +64 -0
- package/dist/abis/identityRegistry.js.map +1 -1
- package/dist/abis/index.d.ts +1 -0
- package/dist/abis/index.d.ts.map +1 -1
- package/dist/abis/index.js +1 -0
- package/dist/abis/index.js.map +1 -1
- package/dist/abis/referralSplitter.d.ts +380 -0
- package/dist/abis/referralSplitter.d.ts.map +1 -0
- package/dist/abis/referralSplitter.js +494 -0
- package/dist/abis/referralSplitter.js.map +1 -0
- package/dist/calls/identityRegistry.d.ts +1 -0
- package/dist/calls/identityRegistry.d.ts.map +1 -1
- package/dist/calls/identityRegistry.js +7 -0
- package/dist/calls/identityRegistry.js.map +1 -1
- package/dist/calls/index.d.ts +1 -0
- package/dist/calls/index.d.ts.map +1 -1
- package/dist/calls/index.js +1 -0
- package/dist/calls/index.js.map +1 -1
- package/dist/calls/referralSplitter.d.ts +14 -0
- package/dist/calls/referralSplitter.d.ts.map +1 -0
- package/dist/calls/referralSplitter.js +42 -0
- package/dist/calls/referralSplitter.js.map +1 -0
- package/dist/ceremony/profiles.d.ts +21 -0
- package/dist/ceremony/profiles.d.ts.map +1 -1
- package/dist/ceremony/profiles.js +31 -1
- package/dist/ceremony/profiles.js.map +1 -1
- package/dist/payloads.d.ts +12 -10
- package/dist/payloads.d.ts.map +1 -1
- package/dist/payloads.js +21 -16
- package/dist/payloads.js.map +1 -1
- package/dist/platforms/handle.d.ts +1 -0
- package/dist/platforms/handle.d.ts.map +1 -1
- package/dist/platforms/handle.js +2 -1
- package/dist/platforms/handle.js.map +1 -1
- package/dist/platforms/platforms.d.ts +3 -0
- package/dist/platforms/platforms.d.ts.map +1 -1
- package/dist/platforms/platforms.js +15 -1
- package/dist/platforms/platforms.js.map +1 -1
- package/package.json +1 -1
- package/src/abis/bindErrors.ts +109 -1
- package/src/abis/ceremonyPayloads.ts +3 -3
- package/src/abis/googleJwtRoots.ts +14 -8
- package/src/abis/identityRegistry.ts +64 -0
- package/src/abis/index.ts +1 -0
- package/src/abis/referralSplitter.ts +496 -0
- package/src/calls/identityRegistry.ts +12 -0
- package/src/calls/index.ts +1 -0
- package/src/calls/referralSplitter.ts +73 -0
- package/src/ceremony/profiles.ts +33 -1
- package/src/payloads.ts +31 -23
- package/src/platforms/handle.ts +9 -1
- package/src/platforms/platforms.ts +15 -1
|
@@ -68,6 +68,12 @@ export declare const X: Profile;
|
|
|
68
68
|
* hosts, so each session pins its own authority.
|
|
69
69
|
*/
|
|
70
70
|
export declare const GITHUB: Profile;
|
|
71
|
+
/**
|
|
72
|
+
* Like Google, the evidence is a token signed with the platform's published
|
|
73
|
+
* keys, so the profile notarizes nothing. The audience is the bot id the
|
|
74
|
+
* payload names, and any bot is admitted (REQ-COMMON-17C).
|
|
75
|
+
*/
|
|
76
|
+
export declare const TELEGRAM: Profile;
|
|
71
77
|
/** The launch profiles. */
|
|
72
78
|
export declare const LAUNCH: readonly Profile[];
|
|
73
79
|
/** The launch profile for a platform name, or undefined. */
|
|
@@ -124,4 +130,19 @@ export declare const MAX_FUTURE_ATTESTATION_SKEW_SECONDS_GITHUB = 300;
|
|
|
124
130
|
* time on one scale.
|
|
125
131
|
*/
|
|
126
132
|
export declare const FUTURE_OBSERVATION_ALLOWANCE_SECONDS_GITHUB = 300;
|
|
133
|
+
/**
|
|
134
|
+
* `telegram/v1`: maximum age of the signed `iat`.
|
|
135
|
+
*/
|
|
136
|
+
export declare const PROOF_LIFETIME_SECONDS_TELEGRAM = 3600;
|
|
137
|
+
/**
|
|
138
|
+
* `telegram/v1`: how far ahead of Block Time the signed `iat` may be
|
|
139
|
+
* dated.
|
|
140
|
+
*/
|
|
141
|
+
export declare const MAX_FUTURE_ATTESTATION_SKEW_SECONDS_TELEGRAM = 300;
|
|
142
|
+
/**
|
|
143
|
+
* `telegram/v1`: how far ahead of Block Time the evidence time may
|
|
144
|
+
* run. The verifier subtracts it, so every version of a platform
|
|
145
|
+
* reports time on one scale.
|
|
146
|
+
*/
|
|
147
|
+
export declare const FUTURE_OBSERVATION_ALLOWANCE_SECONDS_TELEGRAM = 300;
|
|
127
148
|
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/ceremony/profiles.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,aAAa,CAAA;AAElD,MAAM,WAAW,OAAO;IACtB,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB;;;oCAGgC;IAChC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3C;;;2BAGuB;IACvB,QAAQ,CAAC,WAAW,EAAE,SAAS,M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AAM,EAQtD,CAAA;AAaD;;;;GAIG;AACH,eAAO,MAAM,2CAA2C,OAAO,CAAA;AAK/D;;GAEG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAA;AAC5C;;;GAGG;AACH,eAAO,MAAM,qCAAqC,MAAM,CAAA;AACxD;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,MAAM,CAAA;AAGzD;;GAEG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAA;AACjD;;;GAGG;AACH,eAAO,MAAM,0CAA0C,MAAM,CAAA;AAC7D;;;;GAIG;AACH,eAAO,MAAM,2CAA2C,MAAM,CAAA;AAM9D;;GAEG;AACH,eAAO,MAAM,+BAA+B,OAAO,CAAA;AACnD;;;GAGG;AACH,eAAO,MAAM,4CAA4C,MAAM,CAAA;AAC/D;;;;GAIG;AACH,eAAO,MAAM,6CAA6C,MAAM,CAAA"}
|
|
@@ -72,8 +72,19 @@ export const GITHUB = {
|
|
|
72
72
|
handleField: 'login',
|
|
73
73
|
},
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Like Google, the evidence is a token signed with the platform's published
|
|
77
|
+
* keys, so the profile notarizes nothing. The audience is the bot id the
|
|
78
|
+
* payload names, and any bot is admitted (REQ-COMMON-17C).
|
|
79
|
+
*/
|
|
80
|
+
export const TELEGRAM = {
|
|
81
|
+
platform: 'telegram',
|
|
82
|
+
ceremonyVersion: 1,
|
|
83
|
+
token: null,
|
|
84
|
+
identity: null,
|
|
85
|
+
};
|
|
75
86
|
/** The launch profiles. */
|
|
76
|
-
export const LAUNCH = [GOOGLE, X, GITHUB];
|
|
87
|
+
export const LAUNCH = [GOOGLE, X, GITHUB, TELEGRAM];
|
|
77
88
|
/** The launch profile for a platform name, or undefined. */
|
|
78
89
|
export function launch(platform) {
|
|
79
90
|
return LAUNCH.find((p) => p.platform === platform);
|
|
@@ -154,4 +165,23 @@ export const MAX_FUTURE_ATTESTATION_SKEW_SECONDS_GITHUB = 300;
|
|
|
154
165
|
* time on one scale.
|
|
155
166
|
*/
|
|
156
167
|
export const FUTURE_OBSERVATION_ALLOWANCE_SECONDS_GITHUB = 300;
|
|
168
|
+
// The circuit exposes the signed `iat`. A token is accepted while
|
|
169
|
+
// Block Time is in [iat - 5 min, iat + 1 h): five minutes for clock
|
|
170
|
+
// skew. The observation is `iat` less five minutes, so an `iat` inside
|
|
171
|
+
// the skew cannot outrank a later binding.
|
|
172
|
+
/**
|
|
173
|
+
* `telegram/v1`: maximum age of the signed `iat`.
|
|
174
|
+
*/
|
|
175
|
+
export const PROOF_LIFETIME_SECONDS_TELEGRAM = 3600;
|
|
176
|
+
/**
|
|
177
|
+
* `telegram/v1`: how far ahead of Block Time the signed `iat` may be
|
|
178
|
+
* dated.
|
|
179
|
+
*/
|
|
180
|
+
export const MAX_FUTURE_ATTESTATION_SKEW_SECONDS_TELEGRAM = 300;
|
|
181
|
+
/**
|
|
182
|
+
* `telegram/v1`: how far ahead of Block Time the evidence time may
|
|
183
|
+
* run. The verifier subtracts it, so every version of a platform
|
|
184
|
+
* reports time on one scale.
|
|
185
|
+
*/
|
|
186
|
+
export const FUTURE_OBSERVATION_ALLOWANCE_SECONDS_TELEGRAM = 300;
|
|
157
187
|
//# sourceMappingURL=profiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/ceremony/profiles.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,oEAAoE;AA6DpE;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAY;IAC7B,QAAQ,EAAE,QAAQ;IAClB,eAAe,EAAE,CAAC;IAClB,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;CACf,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,CAAC,GAAY;IACxB,QAAQ,EAAE,GAAG;IACb,eAAe,EAAE,CAAC;IAClB,KAAK,EAAE;QACL,OAAO,EAAE;YACP,SAAS,EAAE,WAAW;YACtB,MA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AACrE,2EAA2E;AAC3E,4EAA4E;AAC5E,gBAAgB;AAEhB,yEAAyE;AACzE,iEAAiE;AACjE,sEAAsE;AACtE,MAAM;AACN;;;;GAIG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG,IAAI,CAAA;AAE/D,uEAAuE;AACvE,uEAAuE;AACvE,yCAAyC;AACzC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAA;AAC5C;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,CAAA;AACxD;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,GAAG,CAAA;AAEzD,uDAAuD;AACvD;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA;AACjD;;;GAGG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,GAAG,CAAA;AAC7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,CAAA;AAE9D,kEAAkE;AAClE,oEAAoE;AACpE,uEAAuE;AACvE,2CAA2C;AAC3C;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,CAAA;AACnD;;;GAGG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,GAAG,CAAA;AAC/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAG,GAAG,CAAA"}
|
package/dist/payloads.d.ts
CHANGED
|
@@ -59,10 +59,10 @@ declare const TLS_NOTARY_PROOF: readonly [{
|
|
|
59
59
|
readonly internalType: "bytes";
|
|
60
60
|
}];
|
|
61
61
|
}];
|
|
62
|
-
declare const
|
|
62
|
+
declare const OIDC_PROOF: readonly [{
|
|
63
63
|
readonly name: "payload";
|
|
64
64
|
readonly type: "tuple";
|
|
65
|
-
readonly internalType: "struct
|
|
65
|
+
readonly internalType: "struct OidcPlatformVerifierBase.OidcProof";
|
|
66
66
|
readonly components: readonly [{
|
|
67
67
|
readonly name: "ceremonyVersion";
|
|
68
68
|
readonly type: "uint16";
|
|
@@ -92,7 +92,7 @@ declare const GOOGLE_PROOF: readonly [{
|
|
|
92
92
|
readonly type: "bytes32";
|
|
93
93
|
readonly internalType: "bytes32";
|
|
94
94
|
}, {
|
|
95
|
-
readonly name: "
|
|
95
|
+
readonly name: "time";
|
|
96
96
|
readonly type: "uint64";
|
|
97
97
|
readonly internalType: "uint64";
|
|
98
98
|
}, {
|
|
@@ -106,19 +106,21 @@ declare const GOOGLE_PROOF: readonly [{
|
|
|
106
106
|
}];
|
|
107
107
|
}];
|
|
108
108
|
export type TlsNotaryProof = AbiParameterToPrimitiveType<(typeof TLS_NOTARY_PROOF)[0]>;
|
|
109
|
-
export type
|
|
109
|
+
export type OidcProof = AbiParameterToPrimitiveType<(typeof OIDC_PROOF)[0]>;
|
|
110
110
|
export declare function encodeTlsNotaryProof(payload: TlsNotaryProof): Hex;
|
|
111
111
|
export declare function decodeTlsNotaryProof(data: Hex): TlsNotaryProof;
|
|
112
|
-
export declare function
|
|
113
|
-
export declare function
|
|
114
|
-
export type
|
|
115
|
-
export declare class
|
|
112
|
+
export declare function encodeOidcProof(payload: OidcProof): Hex;
|
|
113
|
+
export declare function decodeOidcProof(data: Hex): OidcProof;
|
|
114
|
+
export type OidcProofFields = Pick<OidcProof, 'idNode' | 'handleNode' | 'time' | 'modulus'>;
|
|
115
|
+
export declare class OidcPublicInputMismatch extends Error {
|
|
116
116
|
readonly field: 'count' | 'digest' | 'audience';
|
|
117
117
|
constructor(field: 'count' | 'digest' | 'audience');
|
|
118
118
|
}
|
|
119
|
-
export declare
|
|
119
|
+
export declare const GooglePublicInputMismatch: typeof OidcPublicInputMismatch;
|
|
120
|
+
export type GooglePublicInputMismatch = OidcPublicInputMismatch;
|
|
121
|
+
export declare function oidcProofFields(publicInputs: readonly Hex[], expected: {
|
|
120
122
|
digest: Hex;
|
|
121
123
|
clientIdentifier: Hex;
|
|
122
|
-
}):
|
|
124
|
+
}): OidcProofFields;
|
|
123
125
|
export {};
|
|
124
126
|
//# sourceMappingURL=payloads.d.ts.map
|
package/dist/payloads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,2BAA2B,EAGhC,KAAK,GAAG,EAKT,MAAM,MAAM,CAAA;AAcb,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACjD,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,2BAA2B,EAGhC,KAAK,GAAG,EAKT,MAAM,MAAM,CAAA;AAcb,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACjD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAA;AAGtC,MAAM,MAAM,cAAc,GAAG,2BAA2B,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAItF,MAAM,MAAM,SAAS,GAAG,2BAA2B,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAG3E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,GAAG,CAEjE;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAGD,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,GAAG,GAAG,CAEvD;AAGD,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAGD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC,CAAA;AAI3F,qBAAa,uBAAwB,SAAQ,KAAK;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU;gBAAtC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU;CAM5D;AAMD,eAAO,MAAM,yBAAyB,gCAA0B,CAAA;AAEhE,MAAM,MAAM,yBAAyB,GAAG,uBAAuB,CAAA;AAK/D,wBAAgB,eAAe,CAC7B,YAAY,EAAE,SAAS,GAAG,EAAE,EAC5B,QAAQ,EAAE;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,gBAAgB,EAAE,GAAG,CAAA;CAAE,GAC/C,eAAe,CAajB"}
|
package/dist/payloads.js
CHANGED
|
@@ -9,7 +9,7 @@ function inputs(name) {
|
|
|
9
9
|
return item.inputs;
|
|
10
10
|
}
|
|
11
11
|
const TLS_NOTARY_PROOF = inputs('tlsNotaryProof');
|
|
12
|
-
const
|
|
12
|
+
const OIDC_PROOF = inputs('oidcProof');
|
|
13
13
|
/// The `x/v1` or `github/v1` payload, as the verifier decodes it.
|
|
14
14
|
export function encodeTlsNotaryProof(payload) {
|
|
15
15
|
return encodeAbiParameters(TLS_NOTARY_PROOF, [payload]);
|
|
@@ -18,41 +18,46 @@ export function encodeTlsNotaryProof(payload) {
|
|
|
18
18
|
export function decodeTlsNotaryProof(data) {
|
|
19
19
|
return decodeAbiParameters(TLS_NOTARY_PROOF, data)[0];
|
|
20
20
|
}
|
|
21
|
-
/// The `google/v1` payload, as the verifier decodes it.
|
|
22
|
-
export function
|
|
23
|
-
return encodeAbiParameters(
|
|
21
|
+
/// The `google/v1` or `telegram/v1` payload, as the verifier decodes it.
|
|
22
|
+
export function encodeOidcProof(payload) {
|
|
23
|
+
return encodeAbiParameters(OIDC_PROOF, [payload]);
|
|
24
24
|
}
|
|
25
|
-
///
|
|
26
|
-
export function
|
|
27
|
-
return decodeAbiParameters(
|
|
25
|
+
/// An OIDC payload back into its fields. Throws on bytes that are not one.
|
|
26
|
+
export function decodeOidcProof(data) {
|
|
27
|
+
return decodeAbiParameters(OIDC_PROOF, data)[0];
|
|
28
28
|
}
|
|
29
|
-
/// The
|
|
29
|
+
/// The OIDC public input that disagrees with the payload: the verifier
|
|
30
30
|
/// would fail the proof, so a client checks before sending.
|
|
31
|
-
export class
|
|
31
|
+
export class OidcPublicInputMismatch extends Error {
|
|
32
32
|
field;
|
|
33
33
|
constructor(field) {
|
|
34
34
|
super(`the proof's ${field} public input${field === 'count' ? 's do' : ' does'} not match the payload`);
|
|
35
35
|
this.field = field;
|
|
36
|
-
this.name = '
|
|
36
|
+
this.name = 'OidcPublicInputMismatch';
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
///
|
|
39
|
+
/// Another name for `OidcPublicInputMismatch`: `instanceof` matches, and
|
|
40
|
+
/// the thrown error's `.name` is `'OidcPublicInputMismatch'`.
|
|
41
|
+
/// @deprecated Use `OidcPublicInputMismatch`; code that compares `.name`
|
|
42
|
+
/// to `'GooglePublicInputMismatch'` no longer matches.
|
|
43
|
+
export const GooglePublicInputMismatch = OidcPublicInputMismatch;
|
|
44
|
+
/// The payload fields from the prover's 57 OIDC public inputs
|
|
40
45
|
/// (REQ-PLAT-16B), after checking the digest the token's `nonce` carried and
|
|
41
46
|
/// the audience against what the verifier builds them from.
|
|
42
|
-
export function
|
|
47
|
+
export function oidcProofFields(publicInputs, expected) {
|
|
43
48
|
if (publicInputs.length !== 57)
|
|
44
|
-
throw new
|
|
49
|
+
throw new OidcPublicInputMismatch('count');
|
|
45
50
|
const field = (i) => hexToBigInt(publicInputs[i]);
|
|
46
51
|
const node = (i) => numberToHex((field(i) << 128n) | field(i + 1), { size: 32 });
|
|
47
52
|
const digest = hexToBytes(expected.digest);
|
|
48
53
|
if (digest.some((b, i) => field(i) !== BigInt(b)))
|
|
49
|
-
throw new
|
|
54
|
+
throw new OidcPublicInputMismatch('digest');
|
|
50
55
|
if (node(32) !== sha256(expected.clientIdentifier))
|
|
51
|
-
throw new
|
|
56
|
+
throw new OidcPublicInputMismatch('audience');
|
|
52
57
|
return {
|
|
53
58
|
idNode: node(34),
|
|
54
59
|
handleNode: node(36),
|
|
55
|
-
|
|
60
|
+
time: field(38),
|
|
56
61
|
modulus: publicInputs.slice(39, 57),
|
|
57
62
|
};
|
|
58
63
|
}
|
package/dist/payloads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,4EAA4E;AAE5E,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EAEnB,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,GACP,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAMhE,SAAS,MAAM,CAAwB,IAAO;IAC5C,MAAM,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;IAClG,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,IAAI,EAAE,CAAC,CAAA;IAChE,OAAO,IAAI,CAAC,MAAmB,CAAA;AACjC,CAAC;AAED,MAAM,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;AACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../src/payloads.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,4EAA4E;AAE5E,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EAEnB,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,GACP,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B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AAO,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAoC;KACvE,CAAA;AACH,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface Rules {
|
|
|
5
5
|
export declare const RULES_X: Rules;
|
|
6
6
|
export declare const RULES_GITHUB: Rules;
|
|
7
7
|
export declare const RULES_GOOGLE: Rules;
|
|
8
|
+
export declare const RULES_TELEGRAM: Rules;
|
|
8
9
|
export declare function rulesFor(platformKey: string): Rules | null;
|
|
9
10
|
export declare function isStringByte(b: number): boolean;
|
|
10
11
|
export declare function normalize(raw: string, rules: Rules): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../src/platforms/handle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../src/platforms/handle.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,KAAK;IACpB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,OAAO,EAAE,KAAwB,CAAA;AAC9C,eAAO,MAAM,YAAY,EAAE,KAA6B,CAAA;AACxD,eAAO,MAAM,YAAY,EAAE,KAA6B,CAAA;AACxD,eAAO,MAAM,cAAc,EAAE,KAA+B,CAAA;AAG5D,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAE1D;AAGD,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAE/C;AAID,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAQ3D"}
|
package/dist/platforms/handle.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// Turns a typed handle into the form the identity circuits hash into a node.
|
|
2
2
|
/// Mirrors the circuits and Rust; all run the `handles.json` vectors.
|
|
3
|
-
import { HandleError, PLATFORM_GITHUB, PLATFORM_GOOGLE, PLATFORM_X, platform } from './platforms.js';
|
|
3
|
+
import { HandleError, PLATFORM_GITHUB, PLATFORM_GOOGLE, PLATFORM_TELEGRAM, PLATFORM_X, platform, } from './platforms.js';
|
|
4
4
|
export const RULES_X = PLATFORM_X.rules;
|
|
5
5
|
export const RULES_GITHUB = PLATFORM_GITHUB.rules;
|
|
6
6
|
export const RULES_GOOGLE = PLATFORM_GOOGLE.rules;
|
|
7
|
+
export const RULES_TELEGRAM = PLATFORM_TELEGRAM.rules;
|
|
7
8
|
/// The rules for a platform key from the generated table.
|
|
8
9
|
export function rulesFor(platformKey) {
|
|
9
10
|
return platform(platformKey)?.rules ?? null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle.js","sourceRoot":"","sources":["../../src/platforms/handle.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,sEAAsE;AAEtE,OAAO,
|
|
1
|
+
{"version":3,"file":"handle.js","sourceRoot":"","sources":["../../src/platforms/handle.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,sEAAsE;AAEtE,OAAO,EACL,WAAW,EACX,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,QAAQ,GACT,MAAM,gBAAgB,CAAA;AAQvB,MAAM,CAAC,MAAM,OAAO,GAAU,UAAU,CAAC,KAAK,CAAA;AAC9C,MAAM,CAAC,MAAM,YAAY,GAAU,eAAe,CAAC,KAAK,CAAA;AACxD,MAAM,CAAC,MAAM,YAAY,GAAU,eAAe,CAAC,KAAK,CAAA;AACxD,MAAM,CAAC,MAAM,cAAc,GAAU,iBAAiB,CAAC,KAAK,CAAA;AAE5D,0DAA0D;AAC1D,MAAM,UAAU,QAAQ,CAAC,WAAmB;IAC1C,OAAO,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,IAAI,CAAA;AAC7C,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,YAAY,CAAC,CAAS;IACpC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,CAAA;AAC3D,CAAC;AAED,4EAA4E;AAC5E,uEAAuE;AACvE,MAAM,UAAU,SAAS,CAAC,GAAW,EAAE,KAAY;IACjD,gEAAgE;IAChE,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,WAAW,CAAC,OAAO,CAAC,CAAA;IACtD,IAAI,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,SAAS;QAAE,MAAM,IAAI,WAAW,CAAC,SAAS,CAAC,CAAA;IACpE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC;QAAE,MAAM,IAAI,WAAW,CAAC,cAAc,CAAC,CAAA;IACrE,mDAAmD;IACnD,OAAO,GAAG,CAAC,WAAW,EAAE,CAAA;AAC1B,CAAC"}
|
|
@@ -17,9 +17,12 @@ export declare const PLATFORM_GOOGLE_KEY = "google";
|
|
|
17
17
|
export declare const PLATFORM_X_KEY = "x";
|
|
18
18
|
/** keccak256 of this string is the platform id. */
|
|
19
19
|
export declare const PLATFORM_GITHUB_KEY = "github";
|
|
20
|
+
/** keccak256 of this string is the platform id. */
|
|
21
|
+
export declare const PLATFORM_TELEGRAM_KEY = "telegram";
|
|
20
22
|
export declare const PLATFORM_GOOGLE: Platform;
|
|
21
23
|
export declare const PLATFORM_X: Platform;
|
|
22
24
|
export declare const PLATFORM_GITHUB: Platform;
|
|
25
|
+
export declare const PLATFORM_TELEGRAM: Platform;
|
|
23
26
|
/** Every platform, in table order. */
|
|
24
27
|
export declare const PLATFORMS: readonly Platform[];
|
|
25
28
|
/** The platform with this key, if the table names it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platforms.d.ts","sourceRoot":"","sources":["../../src/platforms/platforms.ts"],"names":[],"mappings":"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;AACD,eAAO,MAAM,eAAe,EAAE,QAW7B,CAAA;AACD,eAAO,MAAM,iBAAiB,EAAE,QAW/B,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,SAAS,EAAE,SAAS,QAAQ,EAAsE,CAAA;AAE/G,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAE1D;AAED,yEAAyE;AACzE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAE9D,gCAAgC;AAChC,qBAAa,WAAY,SAAQ,KAAK;IACxB,QAAQ,CAAC,IAAI,EAAE,WAAW;gBAAjB,IAAI,EAAE,WAAW;CAIvC;AAaD,uCAAuC;AACvC,qBAAa,OAAQ,SAAQ,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW;gBAAjB,IAAI,EAAE,WAAW;CAIvC"}
|
|
@@ -7,6 +7,8 @@ export const PLATFORM_GOOGLE_KEY = 'google';
|
|
|
7
7
|
export const PLATFORM_X_KEY = 'x';
|
|
8
8
|
/** keccak256 of this string is the platform id. */
|
|
9
9
|
export const PLATFORM_GITHUB_KEY = 'github';
|
|
10
|
+
/** keccak256 of this string is the platform id. */
|
|
11
|
+
export const PLATFORM_TELEGRAM_KEY = 'telegram';
|
|
10
12
|
export const PLATFORM_GOOGLE = {
|
|
11
13
|
key: PLATFORM_GOOGLE_KEY,
|
|
12
14
|
userIdTag: 'libid.google.user-id',
|
|
@@ -43,8 +45,20 @@ export const PLATFORM_GITHUB = {
|
|
|
43
45
|
decimal: true,
|
|
44
46
|
},
|
|
45
47
|
};
|
|
48
|
+
export const PLATFORM_TELEGRAM = {
|
|
49
|
+
key: PLATFORM_TELEGRAM_KEY,
|
|
50
|
+
userIdTag: 'libid.telegram.user-id',
|
|
51
|
+
handleTag: 'libid.telegram.handle',
|
|
52
|
+
rules: {
|
|
53
|
+
maxLength: 32,
|
|
54
|
+
},
|
|
55
|
+
idRules: {
|
|
56
|
+
maxLength: 20,
|
|
57
|
+
decimal: true,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
46
60
|
/** Every platform, in table order. */
|
|
47
|
-
export const PLATFORMS = [PLATFORM_GOOGLE, PLATFORM_X, PLATFORM_GITHUB];
|
|
61
|
+
export const PLATFORMS = [PLATFORM_GOOGLE, PLATFORM_X, PLATFORM_GITHUB, PLATFORM_TELEGRAM];
|
|
48
62
|
/** The platform with this key, if the table names it. */
|
|
49
63
|
export function platform(key) {
|
|
50
64
|
return PLATFORMS.find((p) => p.key === key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platforms.js","sourceRoot":"","sources":["../../src/platforms/platforms.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,uFAAuF;AACvF,qFAAqF;AAoBrF,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAA;AAC3C,mDAAmD;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;AACjC,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"platforms.js","sourceRoot":"","sources":["../../src/platforms/platforms.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,uFAAuF;AACvF,qFAAqF;AAoBrF,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAA;AAC3C,mDAAmD;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;AACjC,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAA;AAC3C,mDAAmD;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAA;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC,GAAG,EAAE,mBAAmB;IACxB,SAAS,EAAE,sBAAsB;IACjC,SAAS,EAAE,qBAAqB;IAChC,KAAK,EAAE;QACL,SAA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A;QADP,SAAI,GAAJ,IAAI,CAAa;QAEpC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAA;IAC3B,CAAC;CACF;AAED,SAAS,aAAa,CAAC,IAAiB;IACtC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,qBAAqB,CAAA;QAC9B,KAAK,SAAS;YACZ,OAAO,0CAA0C,CAAA;QACnD,KAAK,cAAc;YACjB,OAAO,wEAAwE,CAAA;IACnF,CAAC;AACH,CAAC;AAED,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;IACX;IAArB,YAAqB,IAAiB;QACpC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;QADH,SAAI,GAAJ,IAAI,CAAa;QAEpC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;IACvB,CAAC;CACF;AAED,SAAS,SAAS,CAAC,IAAiB;IAClC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,iBAAiB,CAAA;QAC1B,KAAK,SAAS;YACZ,OAAO,sCAAsC,CAAA;QAC/C,KAAK,cAAc;YACjB,OAAO,gDAAgD,CAAA;IAC3D,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libid/contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Typed viem-ready ABIs and call builders for the libid contracts, plus the identity helper layer (handle normalization, handle resolution).",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"repository": {
|
package/src/abis/bindErrors.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by ts/packages/contracts/scripts/codegen.mjs. Do not edit.
|
|
2
|
-
// Source artifact: solidity/out/IdentityRegistry.sol/IdentityRegistry.json, CeremonyProofVerifier.sol/CeremonyProofVerifier.json, XPlatformVerifier.sol/XPlatformVerifier.json, GitHubPlatformVerifier.sol/GitHubPlatformVerifier.json, GooglePlatformVerifier.sol/GooglePlatformVerifier.json, NotaryService.sol/NotaryService.json, IHonkVerifierErrors.sol/IHonkVerifierErrors.json
|
|
2
|
+
// Source artifact: solidity/out/IdentityRegistry.sol/IdentityRegistry.json, CeremonyProofVerifier.sol/CeremonyProofVerifier.json, XPlatformVerifier.sol/XPlatformVerifier.json, GitHubPlatformVerifier.sol/GitHubPlatformVerifier.json, GooglePlatformVerifier.sol/GooglePlatformVerifier.json, TelegramPlatformVerifier.sol/TelegramPlatformVerifier.json, NotaryService.sol/NotaryService.json, IHonkVerifierErrors.sol/IHonkVerifierErrors.json, ReferralSplitter.sol/ReferralSplitter.json
|
|
3
3
|
|
|
4
4
|
import type { Abi } from 'viem'
|
|
5
5
|
|
|
@@ -59,6 +59,17 @@ export const bindErrorsAbi = [
|
|
|
59
59
|
"name": "FailedCall",
|
|
60
60
|
"inputs": []
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"type": "error",
|
|
64
|
+
"name": "FeeCallRefused",
|
|
65
|
+
"inputs": [
|
|
66
|
+
{
|
|
67
|
+
"name": "receiver",
|
|
68
|
+
"type": "address",
|
|
69
|
+
"internalType": "address"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
62
73
|
{
|
|
63
74
|
"type": "error",
|
|
64
75
|
"name": "FeeTransferFailed",
|
|
@@ -107,6 +118,11 @@ export const bindErrorsAbi = [
|
|
|
107
118
|
"name": "InvalidInitialization",
|
|
108
119
|
"inputs": []
|
|
109
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"type": "error",
|
|
123
|
+
"name": "NoFee",
|
|
124
|
+
"inputs": []
|
|
125
|
+
},
|
|
110
126
|
{
|
|
111
127
|
"type": "error",
|
|
112
128
|
"name": "NoHandle",
|
|
@@ -963,5 +979,97 @@ export const bindErrorsAbi = [
|
|
|
963
979
|
"type": "error",
|
|
964
980
|
"name": "ValueGeLimbMax",
|
|
965
981
|
"inputs": []
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"type": "error",
|
|
985
|
+
"name": "BadFeeData",
|
|
986
|
+
"inputs": [
|
|
987
|
+
{
|
|
988
|
+
"name": "length",
|
|
989
|
+
"type": "uint256",
|
|
990
|
+
"internalType": "uint256"
|
|
991
|
+
}
|
|
992
|
+
]
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"type": "error",
|
|
996
|
+
"name": "BadTreasury",
|
|
997
|
+
"inputs": [
|
|
998
|
+
{
|
|
999
|
+
"name": "treasury",
|
|
1000
|
+
"type": "address",
|
|
1001
|
+
"internalType": "address"
|
|
1002
|
+
}
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"type": "error",
|
|
1007
|
+
"name": "EscrowOfAnotherRegistry",
|
|
1008
|
+
"inputs": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "escrowRegistry",
|
|
1011
|
+
"type": "address",
|
|
1012
|
+
"internalType": "address"
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"type": "error",
|
|
1018
|
+
"name": "NotRegistry",
|
|
1019
|
+
"inputs": [
|
|
1020
|
+
{
|
|
1021
|
+
"name": "caller",
|
|
1022
|
+
"type": "address",
|
|
1023
|
+
"internalType": "address"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"type": "error",
|
|
1029
|
+
"name": "RenounceDisabled",
|
|
1030
|
+
"inputs": []
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"type": "error",
|
|
1034
|
+
"name": "ShareAboveWhole",
|
|
1035
|
+
"inputs": [
|
|
1036
|
+
{
|
|
1037
|
+
"name": "shareBps",
|
|
1038
|
+
"type": "uint16",
|
|
1039
|
+
"internalType": "uint16"
|
|
1040
|
+
}
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"type": "error",
|
|
1045
|
+
"name": "TreasuryRefused",
|
|
1046
|
+
"inputs": [
|
|
1047
|
+
{
|
|
1048
|
+
"name": "treasury",
|
|
1049
|
+
"type": "address",
|
|
1050
|
+
"internalType": "address"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "amount",
|
|
1054
|
+
"type": "uint256",
|
|
1055
|
+
"internalType": "uint256"
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"type": "error",
|
|
1061
|
+
"name": "WrongBindFee",
|
|
1062
|
+
"inputs": [
|
|
1063
|
+
{
|
|
1064
|
+
"name": "required",
|
|
1065
|
+
"type": "uint256",
|
|
1066
|
+
"internalType": "uint256"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "provided",
|
|
1070
|
+
"type": "uint256",
|
|
1071
|
+
"internalType": "uint256"
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
966
1074
|
}
|
|
967
1075
|
] as const satisfies Abi
|
|
@@ -6,12 +6,12 @@ import type { Abi } from 'viem'
|
|
|
6
6
|
export const ceremonyPayloadsAbi = [
|
|
7
7
|
{
|
|
8
8
|
"type": "function",
|
|
9
|
-
"name": "
|
|
9
|
+
"name": "oidcProof",
|
|
10
10
|
"inputs": [
|
|
11
11
|
{
|
|
12
12
|
"name": "payload",
|
|
13
13
|
"type": "tuple",
|
|
14
|
-
"internalType": "struct
|
|
14
|
+
"internalType": "struct OidcPlatformVerifierBase.OidcProof",
|
|
15
15
|
"components": [
|
|
16
16
|
{
|
|
17
17
|
"name": "ceremonyVersion",
|
|
@@ -49,7 +49,7 @@ export const ceremonyPayloadsAbi = [
|
|
|
49
49
|
"internalType": "bytes32"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
"name": "
|
|
52
|
+
"name": "time",
|
|
53
53
|
"type": "uint64",
|
|
54
54
|
"internalType": "uint64"
|
|
55
55
|
},
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
import type { Abi } from 'viem'
|
|
5
5
|
|
|
6
6
|
export const googleJwtRootsAbi = [
|
|
7
|
-
{
|
|
8
|
-
"type": "constructor",
|
|
9
|
-
"inputs": [],
|
|
10
|
-
"stateMutability": "nonpayable"
|
|
11
|
-
},
|
|
12
7
|
{
|
|
13
8
|
"type": "function",
|
|
14
9
|
"name": "AUTHORITY",
|
|
@@ -20,7 +15,7 @@ export const googleJwtRootsAbi = [
|
|
|
20
15
|
"internalType": "bytes32"
|
|
21
16
|
}
|
|
22
17
|
],
|
|
23
|
-
"stateMutability": "
|
|
18
|
+
"stateMutability": "pure"
|
|
24
19
|
},
|
|
25
20
|
{
|
|
26
21
|
"type": "function",
|
|
@@ -115,7 +110,7 @@ export const googleJwtRootsAbi = [
|
|
|
115
110
|
{
|
|
116
111
|
"name": "current",
|
|
117
112
|
"type": "tuple",
|
|
118
|
-
"internalType": "struct
|
|
113
|
+
"internalType": "struct JwtRootsBase.Generation",
|
|
119
114
|
"components": [
|
|
120
115
|
{
|
|
121
116
|
"name": "observedAt",
|
|
@@ -132,7 +127,7 @@ export const googleJwtRootsAbi = [
|
|
|
132
127
|
{
|
|
133
128
|
"name": "previous",
|
|
134
129
|
"type": "tuple",
|
|
135
|
-
"internalType": "struct
|
|
130
|
+
"internalType": "struct JwtRootsBase.Generation",
|
|
136
131
|
"components": [
|
|
137
132
|
{
|
|
138
133
|
"name": "observedAt",
|
|
@@ -791,6 +786,17 @@ export const googleJwtRootsAbi = [
|
|
|
791
786
|
"name": "UnexpectedNesting",
|
|
792
787
|
"inputs": []
|
|
793
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"type": "error",
|
|
791
|
+
"name": "UnknownPlatform",
|
|
792
|
+
"inputs": [
|
|
793
|
+
{
|
|
794
|
+
"name": "platformId",
|
|
795
|
+
"type": "bytes32",
|
|
796
|
+
"internalType": "bytes32"
|
|
797
|
+
}
|
|
798
|
+
]
|
|
799
|
+
},
|
|
794
800
|
{
|
|
795
801
|
"type": "error",
|
|
796
802
|
"name": "UnterminatedMember",
|