Skip to content

Commit 76ab06f

Browse files
marc2332evavirseda
andauthored
chore(ts-sdk): Stabilize MoveAuthenticator (#164)
Removes the experimental annotation from MoveAuthenticator --------- Co-authored-by: Eva Vírseda <[email protected]>
1 parent 004c8d0 commit 76ab06f

10 files changed

Lines changed: 5 additions & 17 deletions

File tree

.changeset/afraid-steaks-melt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@iota/iota-sdk': minor
3+
---
4+
5+
Remove experimental notations in several MoveAuthenticator APIs.

sdk/typescript/src/bcs/bcs.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,13 @@ export const PasskeyAuthenticator = bcs.struct('PasskeyAuthenticator', {
320320
userSignature: bcs.byteVector(),
321321
});
322322

323-
/** @experimental */
324323
const MoveAuthenticatorV1 = bcs.struct('MoveAuthenticatorV1', {
325324
callArgs: bcs.vector(CallArg),
326325
typeArgs: bcs.vector(TypeTag),
327326
objectToAuthenticate: CallArg,
328327
});
329328

330329
/**
331-
* @experimental
332330
* MoveAuthenticator allows authenticating transactions via a Move function call
333331
* as part of Account Abstraction.
334332
* The enum wrapper matches the Rust `MoveAuthenticatorInner` enum, which adds a

sdk/typescript/src/cryptography/signature-scheme.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const SIGNATURE_SCHEME_TO_FLAG = {
88
Secp256r1: 0x02,
99
MultiSig: 0x03,
1010
Passkey: 0x06,
11-
/** @experimental */
1211
MoveAuthenticator: 0x07,
1312
} as const;
1413

@@ -24,7 +23,6 @@ export const SIGNATURE_FLAG_TO_SCHEME = {
2423
0x02: 'Secp256r1',
2524
0x03: 'MultiSig',
2625
0x06: 'Passkey',
27-
/** @experimental */
2826
0x07: 'MoveAuthenticator',
2927
} as const;
3028

@@ -34,7 +32,6 @@ export type SignatureScheme =
3432
| 'Secp256r1'
3533
| 'MultiSig'
3634
| 'Passkey'
37-
/** @experimental */
3835
| 'MoveAuthenticator';
3936

4037
export type SignatureFlag = keyof typeof SIGNATURE_FLAG_TO_SCHEME;

sdk/typescript/src/cryptography/signature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export function parseSerializedSignature(serializedSignature: string) {
6666
multisig,
6767
bytes,
6868
};
69-
// @experimental
7069
case 'MoveAuthenticator':
7170
const moveAuthenticator = bcs.MoveAuthenticator.parse(bytes.slice(1));
7271
return {

sdk/typescript/src/keypairs/move-authenticator/builder.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { IotaClient } from '../../client/index.js';
66
import type { MoveAuthenticatorCallArg, MoveAuthenticatorData } from './types.js';
77

88
/**
9-
* @experimental
109
* Error thrown when an invalid argument is provided to MoveAuthenticator.
1110
*/
1211
export class InvalidMoveAuthArgError extends Error {
@@ -17,7 +16,6 @@ export class InvalidMoveAuthArgError extends Error {
1716
}
1817

1918
/**
20-
* @experimental
2119
* Error thrown when an invalid objectToAuthenticate is provided to MoveAuthenticator.
2220
*/
2321
export class InvalidMoveAuthAccountError extends Error {
@@ -28,7 +26,6 @@ export class InvalidMoveAuthAccountError extends Error {
2826
}
2927

3028
/**
31-
* @experimental
3229
* A function call to authorize a transaction via Move.
3330
* This builder creates a MoveAuthenticator which can be used to execute
3431
* a transaction with Account Abstraction.

sdk/typescript/src/keypairs/move-authenticator/publickey.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { normalizeIotaAddress } from '../../utils/iota-types.js';
88
import { bytesToHex } from '@noble/hashes/utils';
99

1010
/**
11-
* @experimental
1211
* A MoveAuthenticator public key. Since MoveAuthenticator uses account abstraction,
1312
* this uses the object ID as the identity rather than a traditional cryptographic public key.
1413
*/

sdk/typescript/src/keypairs/move-authenticator/signer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function getObjectIdFromCallArg(callArg: ObjectArg): string {
2626
}
2727

2828
/**
29-
* @experimental
3029
* A Move Authenticator signer for account abstraction.
3130
* This allows transactions to be authorized via Move functions rather than traditional cryptographic signatures.
3231
*/

sdk/typescript/src/keypairs/move-authenticator/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import type { CallArg, ObjectArg } from '../../bcs/types.js';
55

66
/**
7-
* @experimental
87
* Call arg for specifying how to provide call arguments before resolution.
98
*/
109
export type MoveAuthenticatorCallArg =
@@ -18,14 +17,12 @@ export type MoveAuthenticatorCallArg =
1817
| { Pure: Uint8Array };
1918

2019
/**
21-
* @experimental
2220
* The resolved MoveAuthenticator data structure, versioned as a discriminated
2321
* union. Add new variants here when new versions are introduced on the Rust side.
2422
*/
2523
export type MoveAuthenticatorData = MoveAuthenticatorDataV1; // future: | MoveAuthenticatorDataV2;
2624

2725
/**
28-
* @experimental
2926
*/
3027
export interface MoveAuthenticatorDataV1 {
3128
version: 'V1';

sdk/typescript/src/keypairs/passkey/keypair.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export class BrowserPasskeyProvider implements PasskeyProvider {
109109
}
110110

111111
/**
112-
* @experimental
113112
* A passkey signer used for signing transactions. This is a client side implementation for [SIP-9](https://github.com/sui-foundation/sips/blob/main/sips/sip-9.md).
114113
*/
115114
export class PasskeyKeypair extends Signer {

sdk/typescript/src/verify/verify.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ function parseSignature(signature: string) {
9090
};
9191
}
9292

93-
// @experimental
9493
if (parsedSignature.signatureScheme === 'MoveAuthenticator') {
9594
const moveAuth = parsedSignature.moveAuthenticator;
9695
let authenticatedObjectId: string | undefined;
@@ -138,7 +137,6 @@ export function publicKeyFromRawBytes(
138137
return new MultiSigPublicKey(bytes);
139138
case 'Passkey':
140139
return new PasskeyPublicKey(bytes);
141-
// @experimental
142140
case 'MoveAuthenticator':
143141
return new MoveAuthenticatorPublicKey(bytes);
144142
default:

0 commit comments

Comments
 (0)