Skip to content

Commit c4e159b

Browse files
authored
chore(iota): Remove ZkLogin (#160)
1 parent 56bdc20 commit c4e159b

7 files changed

Lines changed: 20 additions & 361 deletions

File tree

.changeset/two-rockets-complain.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@iota/graphql-transport': minor
3+
'@iota/iota-sdk': minor
4+
---
5+
6+
Remove ZkLogin.

external/iota

Submodule iota updated 167 files

sdk/graphql-transport/src/generated/queries.ts

Lines changed: 5 additions & 129 deletions
Large diffs are not rendered by default.

sdk/graphql-transport/src/methods.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,6 @@ export const RPC_METHODS: {
659659
graphqlTransactionKindFilter =
660660
TransactionBlockKindInput.ConsensusCommitPrologueV1;
661661
break;
662-
case 'AuthenticatorStateUpdateV1':
663-
graphqlTransactionKindFilter =
664-
TransactionBlockKindInput.AuthenticatorStateUpdateV1;
665-
break;
666662
case 'RandomnessStateUpdate':
667663
graphqlTransactionKindFilter = TransactionBlockKindInput.RandomnessStateUpdate;
668664
break;

sdk/typescript/src/client/types/generated.ts

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ export type CheckpointCommitment = {
8383
ECMHLiveObjectSetDigest: ECMHLiveObjectSetDigest;
8484
};
8585
export type CheckpointId = string | string;
86-
/** A claim consists of value and index_mod_4. */
87-
export interface Claim {
88-
indexMod4: number;
89-
value: string;
90-
}
9186
export interface CoinStruct {
9287
balance: string;
9388
coinObjectId: string;
@@ -112,9 +107,7 @@ export type CompressedSignature =
112107
| {
113108
Secp256r1: string;
114109
}
115-
| {
116-
ZkLogin: string;
117-
}
110+
| 'ZkLoginDeprecated'
118111
| {
119112
Passkey: string;
120113
}
@@ -475,11 +468,6 @@ export type InputObjectKind =
475468
mutable?: boolean;
476469
};
477470
};
478-
export interface IotaActiveJwk {
479-
epoch: string;
480-
jwk: IotaJWK;
481-
jwk_id: IotaJwkId;
482-
}
483471
/** An argument to a transaction in a programmable transaction block */
484472
export type IotaArgument =
485473
| 'GasCoin' /** One of the input objects or primitive values (from `ProgrammableTransactionBlock` inputs) */
@@ -495,9 +483,6 @@ export type IotaArgument =
495483
| {
496484
NestedResult: [number, number];
497485
};
498-
export interface IotaAuthenticatorStateExpire {
499-
min_epoch: string;
500-
}
501486
export type IotaCallArg =
502487
| {
503488
type: 'object';
@@ -566,32 +551,18 @@ export interface CoinMetadata {
566551
symbol: string;
567552
}
568553
export type IotaEndOfEpochTransactionKind =
569-
| 'AuthenticatorStateCreate'
570554
| {
571555
ChangeEpoch: IotaChangeEpoch;
572556
}
573557
| {
574558
ChangeEpochV2: IotaChangeEpochV2;
575-
}
576-
| {
577-
AuthenticatorStateExpire: IotaAuthenticatorStateExpire;
578559
};
579560
export interface IotaExecutionResult {
580561
/** The value of any arguments that were mutably borrowed. Non-mut borrowed values are not included */
581562
mutableReferenceOutputs?: [IotaArgument, number[], string][];
582563
/** The return values from the transaction */
583564
returnValues?: [number[], string][];
584565
}
585-
export interface IotaJWK {
586-
alg: string;
587-
e: string;
588-
kty: string;
589-
n: string;
590-
}
591-
export interface IotaJwkId {
592-
iss: string;
593-
kid: string;
594-
}
595566
export type IotaMoveAbility = 'Copy' | 'Drop' | 'Store' | 'Key';
596567
export interface IotaMoveAbilitySet {
597568
abilities: IotaMoveAbility[];
@@ -1035,7 +1006,6 @@ export type IotaTransactionKind =
10351006
| 'ProgrammableTransaction'
10361007
| 'Genesis'
10371008
| 'ConsensusCommitPrologueV1'
1038-
| 'AuthenticatorStateUpdateV1'
10391009
| 'RandomnessStateUpdate'
10401010
| 'EndOfEpochTransaction'
10411011
| 'SystemTransaction';
@@ -1581,9 +1551,7 @@ export type PublicKey =
15811551
| {
15821552
Secp256r1: string;
15831553
}
1584-
| {
1585-
ZkLogin: string;
1586-
}
1554+
| 'ZkLoginDeprecated'
15871555
| {
15881556
Passkey: string;
15891557
};
@@ -1777,12 +1745,6 @@ export type IotaTransactionBlockKind =
17771745
* failure of the entire programmable transaction block.
17781746
*/
17791747
transactions: IotaTransaction[];
1780-
} /** A transaction which updates global authenticator state */
1781-
| {
1782-
epoch: string;
1783-
kind: 'AuthenticatorStateUpdateV1';
1784-
new_active_jwks: IotaActiveJwk[];
1785-
round: string;
17861748
} /** A transaction which updates global randomness state */
17871749
| {
17881750
epoch: string;
@@ -1973,22 +1935,3 @@ export interface ValidatorsApy {
19731935
apys: ValidatorApy[];
19741936
epoch: string;
19751937
}
1976-
/** An zk login authenticator with all the necessary fields. */
1977-
export interface ZkLoginAuthenticator {
1978-
inputs: ZkLoginInputs;
1979-
maxEpoch: string;
1980-
userSignature: Signature;
1981-
}
1982-
/** All inputs required for the zk login proof verification and other public inputs. */
1983-
export interface ZkLoginInputs {
1984-
addressSeed: string;
1985-
headerBase64: string;
1986-
issBase64Details: Claim;
1987-
proofPoints: ZkLoginProof;
1988-
}
1989-
/** The struct for zk login proof. */
1990-
export interface ZkLoginProof {
1991-
a: string[];
1992-
b: string[][];
1993-
c: string[];
1994-
}

sdk/typescript/src/graphql/generated/2025.2/schema.graphql

Lines changed: 2 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,3 @@
1-
type ActiveJwk {
2-
"""
3-
The string (Issuing Authority) that identifies the OIDC provider.
4-
"""
5-
iss: String!
6-
"""
7-
The string (Key ID) that identifies the JWK among a set of JWKs, (RFC
8-
7517, Section 4.5).
9-
"""
10-
kid: String!
11-
"""
12-
The JWK key type parameter, (RFC 7517, Section 4.1).
13-
"""
14-
kty: String!
15-
"""
16-
The JWK RSA public exponent, (RFC 7517, Section 9.3).
17-
"""
18-
e: String!
19-
"""
20-
The JWK RSA modulus, (RFC 7517, Section 9.3).
21-
"""
22-
n: String!
23-
"""
24-
The JWK algorithm parameter, (RFC 7517, Section 4.4).
25-
"""
26-
alg: String!
27-
"""
28-
The most recent epoch in which the JWK was validated.
29-
"""
30-
epoch: Epoch
31-
}
32-
33-
type ActiveJwkConnection {
34-
"""
35-
Information to aid in pagination.
36-
"""
37-
pageInfo: PageInfo!
38-
"""
39-
A list of edges.
40-
"""
41-
edges: [ActiveJwkEdge!]!
42-
"""
43-
A list of nodes.
44-
"""
45-
nodes: [ActiveJwk!]!
46-
}
47-
48-
"""
49-
An edge in a connection.
50-
"""
51-
type ActiveJwkEdge {
52-
"""
53-
The item at the end of the edge
54-
"""
55-
node: ActiveJwk!
56-
"""
57-
A cursor for use in pagination
58-
"""
59-
cursor: String!
60-
}
61-
621
"""
632
The 32-byte address that is an account address (corresponding to a public
643
key).
@@ -193,49 +132,6 @@ enum AddressTransactionBlockRelationship {
193132
RECV
194133
}
195134

196-
"""
197-
System transaction for creating the on-chain state used by zkLogin.
198-
"""
199-
type AuthenticatorStateCreateTransaction {
200-
"""
201-
A workaround to define an empty variant of a GraphQL union.
202-
"""
203-
_: Boolean
204-
}
205-
206-
type AuthenticatorStateExpireTransaction {
207-
"""
208-
Expire JWKs that have a lower epoch than this.
209-
"""
210-
minEpoch: Epoch
211-
"""
212-
The initial version that the AuthenticatorStateUpdateV1 was shared at.
213-
"""
214-
authenticatorObjInitialSharedVersion: UInt53!
215-
}
216-
217-
"""
218-
System transaction for updating the on-chain state used by zkLogin.
219-
"""
220-
type AuthenticatorStateUpdateTransaction {
221-
"""
222-
Epoch of the authenticator state update transaction.
223-
"""
224-
epoch: Epoch
225-
"""
226-
Consensus round of the authenticator state update.
227-
"""
228-
round: UInt53!
229-
"""
230-
Newly active JWKs (JSON Web Keys).
231-
"""
232-
newActiveJwks(first: Int, after: String, last: Int, before: String): ActiveJwkConnection!
233-
"""
234-
The initial version of the authenticator object that it was shared at.
235-
"""
236-
authenticatorObjInitialSharedVersion: UInt53!
237-
}
238-
239135
"""
240136
Range of checkpoints that the RPC is guaranteed to produce a consistent
241137
response for.
@@ -1117,7 +1013,7 @@ type EndOfEpochTransaction {
11171013
transactions(first: Int, before: String, last: Int, after: String): EndOfEpochTransactionKindConnection!
11181014
}
11191015

1120-
union EndOfEpochTransactionKind = ChangeEpochTransaction | ChangeEpochTransactionV2 | AuthenticatorStateCreateTransaction | AuthenticatorStateExpireTransaction
1016+
union EndOfEpochTransactionKind = ChangeEpochTransaction | ChangeEpochTransactionV2
11211017

11221018
type EndOfEpochTransactionKindConnection {
11231019
"""
@@ -3821,23 +3717,6 @@ type Query {
38213717
The coin metadata associated with the given coin type.
38223718
"""
38233719
coinMetadata(coinType: String!): CoinMetadata
3824-
"""
3825-
Verify a zkLogin signature based on the provided transaction or personal
3826-
message based on current epoch, chain id, and latest JWKs fetched
3827-
on-chain. If the signature is valid, the function returns a
3828-
`ZkLoginVerifyResult` with success as true and an empty list of
3829-
errors. If the signature is invalid, the function returns
3830-
a `ZkLoginVerifyResult` with success as false with a list of errors.
3831-
3832-
- `bytes` is either the personal message in raw bytes or transaction
3833-
data bytes in BCS-encoded and then Base64-encoded.
3834-
- `signature` is a serialized zkLogin signature that is Base64-encoded.
3835-
- `intentScope` is an enum that specifies the intent scope to be used to
3836-
parse bytes.
3837-
- `author` is the address of the signer of the transaction or personal
3838-
msg.
3839-
"""
3840-
verifyZkloginSignature(bytes: Base64!, signature: Base64!, intentScope: ZkLoginIntentScope!, author: IotaAddress!): ZkLoginVerifyResult!
38413720
}
38423721

38433722
"""
@@ -4737,7 +4616,7 @@ input TransactionBlockFilter {
47374616
The kind of transaction block, either a programmable transaction or a system
47384617
transaction.
47394618
"""
4740-
union TransactionBlockKind = ConsensusCommitPrologueTransaction | GenesisTransaction | ProgrammableTransactionBlock | AuthenticatorStateUpdateTransaction | RandomnessStateUpdateTransaction | EndOfEpochTransaction
4619+
union TransactionBlockKind = ConsensusCommitPrologueTransaction | GenesisTransaction | ProgrammableTransactionBlock | RandomnessStateUpdateTransaction | EndOfEpochTransaction
47414620

47424621
"""
47434622
An input filter selecting for either system or programmable transactions.
@@ -4761,10 +4640,6 @@ enum TransactionBlockKindInput {
47614640
"""
47624641
CONSENSUS_COMMIT_PROLOGUE_V1
47634642
"""
4764-
The authenticator state update transaction block.
4765-
"""
4766-
AUTHENTICATOR_STATE_UPDATE_V1
4767-
"""
47684643
The randomness state update transaction block.
47694644
"""
47704645
RANDOMNESS_STATE_UPDATE
@@ -5175,35 +5050,6 @@ type ValidatorSet {
51755050
committeeMembers(first: Int, before: String, last: Int, after: String): ValidatorConnection!
51765051
}
51775052

5178-
"""
5179-
An enum that specifies the intent scope to be used to parse the bytes for
5180-
signature verification.
5181-
"""
5182-
enum ZkLoginIntentScope {
5183-
"""
5184-
Indicates that the bytes are to be parsed as transaction data bytes.
5185-
"""
5186-
TRANSACTION_DATA
5187-
"""
5188-
Indicates that the bytes are to be parsed as a personal message.
5189-
"""
5190-
PERSONAL_MESSAGE
5191-
}
5192-
5193-
"""
5194-
The result of the zkLogin signature verification.
5195-
"""
5196-
type ZkLoginVerifyResult {
5197-
"""
5198-
The boolean result of the verification. If true, errors should be empty.
5199-
"""
5200-
success: Boolean!
5201-
"""
5202-
The errors field captures any verification error
5203-
"""
5204-
errors: [String!]!
5205-
}
5206-
52075053
"""
52085054
Marks an element of a GraphQL schema as no longer supported.
52095055
"""

0 commit comments

Comments
 (0)