@rhinestone/sdk 1.0.0-alpha.13 → 1.0.0-alpha.15
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/dist/src/accounts/index.d.ts.map +1 -1
- package/dist/src/accounts/index.js +7 -6
- package/dist/src/accounts/index.test.js +3 -3
- package/dist/src/accounts/kernel.test.js +8 -8
- package/dist/src/accounts/nexus.d.ts.map +1 -1
- package/dist/src/accounts/nexus.js +34 -8
- package/dist/src/accounts/nexus.test.js +12 -12
- package/dist/src/accounts/safe.test.js +8 -8
- package/dist/src/accounts/signing/common.d.ts +10 -6
- package/dist/src/accounts/signing/common.d.ts.map +1 -1
- package/dist/src/accounts/signing/common.js +29 -9
- package/dist/src/accounts/signing/message.d.ts +2 -2
- package/dist/src/accounts/signing/message.d.ts.map +1 -1
- package/dist/src/accounts/signing/message.js +7 -11
- package/dist/src/accounts/signing/passkeys.d.ts +29 -0
- package/dist/src/accounts/signing/passkeys.d.ts.map +1 -0
- package/dist/src/accounts/signing/passkeys.js +90 -0
- package/dist/src/accounts/signing/passkeys.test.d.ts +2 -0
- package/dist/src/accounts/signing/passkeys.test.d.ts.map +1 -0
- package/dist/src/accounts/signing/passkeys.test.js +73 -0
- package/dist/src/accounts/signing/typedData.d.ts +2 -2
- package/dist/src/accounts/signing/typedData.d.ts.map +1 -1
- package/dist/src/accounts/signing/typedData.js +7 -11
- package/dist/src/accounts/startale.test.js +8 -8
- package/dist/src/actions/index.d.ts +45 -1
- package/dist/src/actions/index.d.ts.map +1 -1
- package/dist/src/actions/index.js +168 -6
- package/dist/src/actions/index.test.js +16 -16
- package/dist/src/execution/index.d.ts.map +1 -1
- package/dist/src/execution/index.js +3 -3
- package/dist/src/execution/utils.d.ts +1 -1
- package/dist/src/execution/utils.d.ts.map +1 -1
- package/dist/src/execution/utils.js +12 -11
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -1
- package/dist/src/modules/index.d.ts +2 -17
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/index.js +4 -55
- package/dist/src/modules/index.test.js +2 -16
- package/dist/src/modules/omni-account.d.ts +2 -1
- package/dist/src/modules/omni-account.d.ts.map +1 -1
- package/dist/src/modules/omni-account.js +3 -1
- package/dist/src/modules/validators/core.d.ts +1 -1
- package/dist/src/modules/validators/core.d.ts.map +1 -1
- package/dist/src/modules/validators/core.js +37 -33
- package/dist/src/modules/validators/core.test.js +6 -6
- package/dist/src/modules/validators/smart-sessions.test.js +4 -4
- package/dist/src/orchestrator/client.d.ts +2 -2
- package/dist/src/orchestrator/client.d.ts.map +1 -1
- package/dist/src/orchestrator/consts.d.ts +2 -1
- package/dist/src/orchestrator/consts.d.ts.map +1 -1
- package/dist/src/orchestrator/consts.js +3 -1
- package/dist/src/orchestrator/index.d.ts +1 -1
- package/dist/src/orchestrator/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +10 -4
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Address, type Hex } from 'viem';
|
|
2
|
+
interface WebAuthnSignature {
|
|
3
|
+
authenticatorData: Hex;
|
|
4
|
+
clientDataJSON: string;
|
|
5
|
+
challengeIndex: bigint;
|
|
6
|
+
typeIndex: bigint;
|
|
7
|
+
r: bigint;
|
|
8
|
+
s: bigint;
|
|
9
|
+
}
|
|
10
|
+
declare function parsePublicKey(publicKey: Hex | Uint8Array): {
|
|
11
|
+
x: bigint;
|
|
12
|
+
y: bigint;
|
|
13
|
+
};
|
|
14
|
+
declare function parseSignature(signature: Hex | Uint8Array): {
|
|
15
|
+
r: bigint;
|
|
16
|
+
s: bigint;
|
|
17
|
+
};
|
|
18
|
+
declare function generateCredentialId(pubKeyX: bigint, pubKeyY: bigint, account: Address): `0x${string}`;
|
|
19
|
+
declare function packSignature(credIds: Hex[], usePrecompile: boolean, webAuthns: {
|
|
20
|
+
authenticatorData: Hex;
|
|
21
|
+
clientDataJSON: string;
|
|
22
|
+
challengeIndex: bigint;
|
|
23
|
+
typeIndex: bigint;
|
|
24
|
+
r: bigint;
|
|
25
|
+
s: bigint;
|
|
26
|
+
}[]): Hex;
|
|
27
|
+
export { parsePublicKey, parseSignature, generateCredentialId, packSignature };
|
|
28
|
+
export type { WebAuthnSignature };
|
|
29
|
+
//# sourceMappingURL=passkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkeys.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/passkeys.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAGZ,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AAEb,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,GAAG,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,iBAAS,cAAc,CAAC,SAAS,EAAE,GAAG,GAAG,UAAU,GAAG;IACpD,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV,CAUA;AAED,iBAAS,cAAc,CAAC,SAAS,EAAE,GAAG,GAAG,UAAU,GAAG;IACpD,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV,CASA;AAED,iBAAS,oBAAoB,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,iBAkBjB;AAED,iBAAS,aAAa,CACpB,OAAO,EAAE,GAAG,EAAE,EACd,aAAa,EAAE,OAAO,EACtB,SAAS,EAAE;IACT,iBAAiB,EAAE,GAAG,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV,EAAE,GACF,GAAG,CAqDL;AAED,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,aAAa,EAAE,CAAA;AAC9E,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parsePublicKey = parsePublicKey;
|
|
4
|
+
exports.parseSignature = parseSignature;
|
|
5
|
+
exports.generateCredentialId = generateCredentialId;
|
|
6
|
+
exports.packSignature = packSignature;
|
|
7
|
+
const viem_1 = require("viem");
|
|
8
|
+
function parsePublicKey(publicKey) {
|
|
9
|
+
const bytes = typeof publicKey === 'string' ? (0, viem_1.hexToBytes)(publicKey) : publicKey;
|
|
10
|
+
const offset = bytes.length === 65 ? 1 : 0;
|
|
11
|
+
const x = bytes.slice(offset, 32 + offset);
|
|
12
|
+
const y = bytes.slice(32 + offset, 64 + offset);
|
|
13
|
+
return {
|
|
14
|
+
x: BigInt((0, viem_1.bytesToHex)(x)),
|
|
15
|
+
y: BigInt((0, viem_1.bytesToHex)(y)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function parseSignature(signature) {
|
|
19
|
+
const bytes = typeof signature === 'string' ? (0, viem_1.hexToBytes)(signature) : signature;
|
|
20
|
+
const r = bytes.slice(0, 32);
|
|
21
|
+
const s = bytes.slice(32, 64);
|
|
22
|
+
return {
|
|
23
|
+
r: BigInt((0, viem_1.bytesToHex)(r)),
|
|
24
|
+
s: BigInt((0, viem_1.bytesToHex)(s)),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function generateCredentialId(pubKeyX, pubKeyY, account) {
|
|
28
|
+
return (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([
|
|
29
|
+
{
|
|
30
|
+
type: 'uint256',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'uint256',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'address',
|
|
37
|
+
},
|
|
38
|
+
], [pubKeyX, pubKeyY, account]));
|
|
39
|
+
}
|
|
40
|
+
function packSignature(credIds, usePrecompile, webAuthns) {
|
|
41
|
+
// Sort both `credIds` and `webAuthns` by credIds
|
|
42
|
+
const credIdsAndWebAuthns = credIds.map((credId, index) => ({
|
|
43
|
+
credId,
|
|
44
|
+
webAuthn: webAuthns[index],
|
|
45
|
+
}));
|
|
46
|
+
credIdsAndWebAuthns.sort((a, b) => a.credId.localeCompare(b.credId));
|
|
47
|
+
credIds = credIdsAndWebAuthns.map(({ credId }) => credId);
|
|
48
|
+
webAuthns = credIdsAndWebAuthns.map(({ webAuthn }) => webAuthn);
|
|
49
|
+
// Encode
|
|
50
|
+
return (0, viem_1.encodeAbiParameters)([
|
|
51
|
+
{
|
|
52
|
+
type: 'bytes32[]',
|
|
53
|
+
name: 'credIds',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'bool',
|
|
57
|
+
name: 'usePrecompile',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'tuple[]',
|
|
61
|
+
name: 'webAuthns',
|
|
62
|
+
components: [
|
|
63
|
+
{
|
|
64
|
+
type: 'bytes',
|
|
65
|
+
name: 'authenticatorData',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'string',
|
|
69
|
+
name: 'clientDataJSON',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'uint256',
|
|
73
|
+
name: 'challengeIndex',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: 'uint256',
|
|
77
|
+
name: 'typeIndex',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: 'uint256',
|
|
81
|
+
name: 'r',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'uint256',
|
|
85
|
+
name: 's',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
], [credIds, usePrecompile, webAuthns]);
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkeys.test.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/passkeys.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vitest_1 = require("vitest");
|
|
4
|
+
const passkeys_1 = require("./passkeys");
|
|
5
|
+
(0, vitest_1.describe)('Passkeys', () => {
|
|
6
|
+
(0, vitest_1.describe)('Parse Public Key', () => {
|
|
7
|
+
(0, vitest_1.test)('default', () => {
|
|
8
|
+
const parsed = (0, passkeys_1.parsePublicKey)('0x7a2b9234dbc079da984e021acb76cf230dff5c03f2c5668024ddaeeb388520294bd61dcef34cade4d3bca405e63179ef022948ac45d0b0530cb125977c118ad7');
|
|
9
|
+
(0, vitest_1.expect)(parsed.x).toEqual(55259151030970399927675340420359705684663366332711724388150056154288143802409n);
|
|
10
|
+
(0, vitest_1.expect)(parsed.y).toEqual(34301774645623054632612895881498878184566570389017277955884655401641769536215n);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
(0, vitest_1.describe)('Parse Signature', () => {
|
|
14
|
+
(0, vitest_1.test)('default', () => {
|
|
15
|
+
const parsed = (0, passkeys_1.parseSignature)('0xf60f80fe3fd029d1b380d631f0b659bfbc8f8f60921a88e1e123c159aa540f920ed337464d1bb813dc5f9c3e81998185370da49cc525e9f42cdf805f1030aff8');
|
|
16
|
+
(0, vitest_1.expect)(parsed.r).toEqual(111296353735534357766084082487308191701889898756402773464442570100570127077266n);
|
|
17
|
+
(0, vitest_1.expect)(parsed.s).toEqual(6705566102199758127831148650668918567109283965479844611524279039128750829560n);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
(0, vitest_1.describe)('Generate Credential ID', () => {
|
|
21
|
+
(0, vitest_1.test)('default', () => {
|
|
22
|
+
const id = (0, passkeys_1.generateCredentialId)(55259151030970399927675340420359705684663366332711724388150056154288143802409n, 34301774645623054632612895881498878184566570389017277955884655401641769536215n, '0xb975975c9f381b5df3b4af93bdd1ba739698bc37');
|
|
23
|
+
(0, vitest_1.expect)(id).toEqual('0x9437809df26444a849d303b1174543f0851df5fae657da19f3bb0d92356426ea');
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
(0, vitest_1.describe)('Pack Signature', () => {
|
|
27
|
+
(0, vitest_1.test)('single', () => {
|
|
28
|
+
const credIds = [
|
|
29
|
+
'0x9437809df26444a849d303b1174543f0851df5fae657da19f3bb0d92356426ea',
|
|
30
|
+
];
|
|
31
|
+
const usePrecompile = false;
|
|
32
|
+
const webAuthns = [
|
|
33
|
+
{
|
|
34
|
+
authenticatorData: '0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000',
|
|
35
|
+
clientDataJSON: '{"type":"webauthn.get","challenge":"4p2TiZpTooLCFFYTC2HmMPVMiVjZGghCJ0dz7zUDEeA","origin":"http://localhost:5173","crossOrigin":false}',
|
|
36
|
+
challengeIndex: 23n,
|
|
37
|
+
typeIndex: 1n,
|
|
38
|
+
r: 111296353735534357766084082487308191701889898756402773464442570100570127077266n,
|
|
39
|
+
s: 6705566102199758127831148650668918567109283965479844611524279039128750829560n,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
const packed = (0, passkeys_1.packSignature)(credIds, usePrecompile, webAuthns);
|
|
43
|
+
(0, vitest_1.expect)(packed).toEqual('0x0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000019437809df26444a849d303b1174543f0851df5fae657da19f3bb0d92356426ea0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001f60f80fe3fd029d1b380d631f0b659bfbc8f8f60921a88e1e123c159aa540f920ed337464d1bb813dc5f9c3e81998185370da49cc525e9f42cdf805f1030aff8000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2234703254695a70546f6f4c43464659544332486d4d50564d69566a5a476768434a30647a377a5544456541222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a35313733222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000000000000000000000');
|
|
44
|
+
});
|
|
45
|
+
(0, vitest_1.test)('multisig', () => {
|
|
46
|
+
const credIds = [
|
|
47
|
+
'0x9437809df26444a849d303b1174543f0851df5fae657da19f3bb0d92356426ea',
|
|
48
|
+
'0x6be9646e4d64132d1a1789a467d0501e948d23afce6792d963f401434d7bef33',
|
|
49
|
+
];
|
|
50
|
+
const usePrecompile = true;
|
|
51
|
+
const webAuthns = [
|
|
52
|
+
{
|
|
53
|
+
authenticatorData: '0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000',
|
|
54
|
+
clientDataJSON: '{"type":"webauthn.get","challenge":"4p2TiZpTooLCFFYTC2HmMPVMiVjZGghCJ0dz7zUDEeA","origin":"http://localhost:5173","crossOrigin":false}',
|
|
55
|
+
challengeIndex: 23n,
|
|
56
|
+
typeIndex: 1n,
|
|
57
|
+
r: 111296353735534357766084082487308191701889898756402773464442570100570127077266n,
|
|
58
|
+
s: 6705566102199758127831148650668918567109283965479844611524279039128750829560n,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
authenticatorData: '0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d00000000',
|
|
62
|
+
clientDataJSON: '{"type":"webauthn.get","challenge":"19qAcQAVCeucFt8tQSizBBdbxW6Jkex_3nAejdRuVek","origin":"http://localhost:5173","crossOrigin":false}',
|
|
63
|
+
challengeIndex: 23n,
|
|
64
|
+
typeIndex: 1n,
|
|
65
|
+
r: 52674584175531096231012948456392242307658490190760877544141461393264453154030n,
|
|
66
|
+
s: 1045924358482323524717958171193057427003444327614976707002321626568131749413n,
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
const packed = (0, passkeys_1.packSignature)(credIds, usePrecompile, webAuthns);
|
|
70
|
+
(0, vitest_1.expect)(packed).toEqual('0x0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000026be9646e4d64132d1a1789a467d0501e948d23afce6792d963f401434d7bef339437809df26444a849d303b1174543f0851df5fae657da19f3bb0d92356426ea00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001700000000000000000000000000000000000000000000000000000000000000017474c214167b8a4704cf06f75287a738e7ddbcca9cc0383db6dac6a7d090f4ee024ff8e2a2e8c54aa8cf5f36e3b6125016c3d58d896e3a85c5cd2cd0027a2625000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a22313971416351415643657563467438745153697a424264627857364a6b65785f336e41656a64527556656b222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a35313733222c2263726f73734f726967696e223a66616c73657d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001f60f80fe3fd029d1b380d631f0b659bfbc8f8f60921a88e1e123c159aa540f920ed337464d1bb813dc5f9c3e81998185370da49cc525e9f42cdf805f1030aff8000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97631d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2234703254695a70546f6f4c43464659544332486d4d50564d69566a5a476768434a30647a377a5544456541222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a35313733222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000000000000000000000');
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Chain, HashTypedDataParameters, Hex, TypedData } from 'viem';
|
|
1
|
+
import type { Address, Chain, HashTypedDataParameters, Hex, TypedData } from 'viem';
|
|
2
2
|
import type { SignerSet } from '../../types';
|
|
3
|
-
declare function sign<typedData extends TypedData | Record<string, unknown> = TypedData, primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData>(signers: SignerSet, chain: Chain, parameters: HashTypedDataParameters<typedData, primaryType>): Promise<Hex>;
|
|
3
|
+
declare function sign<typedData extends TypedData | Record<string, unknown> = TypedData, primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData>(signers: SignerSet, chain: Chain, address: Address, parameters: HashTypedDataParameters<typedData, primaryType>): Promise<Hex>;
|
|
4
4
|
export { sign };
|
|
5
5
|
//# sourceMappingURL=typedData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,KAAK,EACL,uBAAuB,EACvB,GAAG,EACH,SAAS,EACV,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../../../accounts/signing/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,OAAO,EACP,KAAK,EACL,uBAAuB,EACvB,GAAG,EACH,SAAS,EACV,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAS5C,iBAAe,IAAI,CACjB,SAAS,SAAS,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACjE,WAAW,SAAS,MAAM,SAAS,GAAG,cAAc,GAAG,MAAM,SAAS,EAEtE,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,uBAAuB,CAAC,SAAS,EAAE,WAAW,CAAC,GAC1D,OAAO,CAAC,GAAG,CAAC,CA0Bd;AA6BD,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sign = sign;
|
|
4
|
-
const modules_1 = require("../../modules");
|
|
5
4
|
const error_1 = require("../error");
|
|
6
5
|
const common_1 = require("./common");
|
|
7
|
-
async function sign(signers, chain, parameters) {
|
|
6
|
+
async function sign(signers, chain, address, parameters) {
|
|
8
7
|
const signingFunctions = {
|
|
9
8
|
signEcdsa: (account, params) => signEcdsa(account, params),
|
|
10
|
-
signPasskey: (account,
|
|
9
|
+
signPasskey: (account, params) => signPasskey(account, params),
|
|
11
10
|
};
|
|
12
11
|
switch (signers.type) {
|
|
13
12
|
case 'owner': {
|
|
14
|
-
return (0, common_1.signWithOwners)(signers, chain, parameters, signingFunctions, sign);
|
|
13
|
+
return (0, common_1.signWithOwners)(signers, chain, address, parameters, signingFunctions, sign);
|
|
15
14
|
}
|
|
16
15
|
case 'session': {
|
|
17
|
-
return (0, common_1.signWithSession)(signers, chain, parameters, sign);
|
|
16
|
+
return (0, common_1.signWithSession)(signers, chain, address, parameters, sign);
|
|
18
17
|
}
|
|
19
18
|
case 'guardians': {
|
|
20
19
|
return (0, common_1.signWithGuardians)(signers, parameters, signingFunctions);
|
|
@@ -27,13 +26,10 @@ async function signEcdsa(account, parameters) {
|
|
|
27
26
|
}
|
|
28
27
|
return await account.signTypedData(parameters);
|
|
29
28
|
}
|
|
30
|
-
async function signPasskey(account,
|
|
29
|
+
async function signPasskey(account, parameters) {
|
|
31
30
|
const { webauthn, signature } = await account.signTypedData(parameters);
|
|
32
|
-
|
|
33
|
-
const encodedSignature = (0, modules_1.getWebauthnValidatorSignature)({
|
|
31
|
+
return {
|
|
34
32
|
webauthn,
|
|
35
33
|
signature,
|
|
36
|
-
|
|
37
|
-
});
|
|
38
|
-
return encodedSignature;
|
|
34
|
+
};
|
|
39
35
|
}
|
|
@@ -19,10 +19,10 @@ const MOCK_MODULE_ADDRESS = '0x28de6501fa86f2e6cd0b33c3aabdaeb4a1b93f3f';
|
|
|
19
19
|
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
20
20
|
});
|
|
21
21
|
(0, vitest_1.expect)(factory).toEqual('0x0000003B3E7b530b4f981aE80d9350392Defef90');
|
|
22
|
-
(0, vitest_1.expect)(factoryData).toEqual('
|
|
22
|
+
(0, vitest_1.expect)(factoryData).toEqual('0xea6d13ac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000000000552a5fae3db7a8f3917c435448f49ba6a9000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003240984b2f700000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000013fdb5234e4e3162a810f54d9f7e98000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006092086a3dc0020cd604a68fcf5d430007d51bb7000000000000000000000000f6c02c78ded62973b43bfa523b247da0994869360000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000005ad9ce1f5035fd62ca96cef16adaaf000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
|
|
23
23
|
(0, vitest_1.expect)(salt).toEqual('0x0000000000000000000000000000000000000000000000000000000000000000');
|
|
24
24
|
(0, vitest_1.expect)(implementation).toEqual('0x000000b8f5f723a680d3d7ee624fe0bc84a6e05a');
|
|
25
|
-
(0, vitest_1.expect)(initializationCallData).toEqual('
|
|
25
|
+
(0, vitest_1.expect)(initializationCallData).toEqual('0x4b6a1419000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003a0000000000000000000000000000000552a5fae3db7a8f3917c435448f49ba6a9000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003240984b2f700000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000013fdb5234e4e3162a810f54d9f7e98000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006092086a3dc0020cd604a68fcf5d430007d51bb7000000000000000000000000f6c02c78ded62973b43bfa523b247da0994869360000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000005ad9ce1f5035fd62ca96cef16adaaf000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
|
|
26
26
|
});
|
|
27
27
|
(0, vitest_1.test)('Passkey owner', () => {
|
|
28
28
|
const { factory, factoryData, salt, implementation, initializationCallData, } = (0, startale_1.getDeployArgs)({
|
|
@@ -31,15 +31,15 @@ const MOCK_MODULE_ADDRESS = '0x28de6501fa86f2e6cd0b33c3aabdaeb4a1b93f3f';
|
|
|
31
31
|
},
|
|
32
32
|
owners: {
|
|
33
33
|
type: 'passkey',
|
|
34
|
-
|
|
34
|
+
accounts: [consts_1.passkeyAccount],
|
|
35
35
|
},
|
|
36
36
|
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
37
37
|
});
|
|
38
38
|
(0, vitest_1.expect)(factory).toEqual('0x0000003B3E7b530b4f981aE80d9350392Defef90');
|
|
39
|
-
(0, vitest_1.expect)(factoryData).toEqual('
|
|
39
|
+
(0, vitest_1.expect)(factoryData).toEqual('0xea6d13ac0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000552a5fae3db7a8f3917c435448f49ba6a9000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003440984b2f700000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000578c4cb0e472a5462da43c495c3f33000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001580a9af0569ad3905b26a703201b358aa0904236642ebe79b22a19d00d3737637d46f725a5427ae45a9569259bf67e1e16b187d7b3ad1ed70138c4f0409677d100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000005ad9ce1f5035fd62ca96cef16adaaf000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
|
|
40
40
|
(0, vitest_1.expect)(salt).toEqual('0x0000000000000000000000000000000000000000000000000000000000000000');
|
|
41
41
|
(0, vitest_1.expect)(implementation).toEqual('0x000000b8f5f723a680d3d7ee624fe0bc84a6e05a');
|
|
42
|
-
(0, vitest_1.expect)(initializationCallData).toEqual('
|
|
42
|
+
(0, vitest_1.expect)(initializationCallData).toEqual('0x4b6a1419000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000552a5fae3db7a8f3917c435448f49ba6a9000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003440984b2f700000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000578c4cb0e472a5462da43c495c3f33000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001580a9af0569ad3905b26a703201b358aa0904236642ebe79b22a19d00d3737637d46f725a5427ae45a9569259bf67e1e16b187d7b3ad1ed70138c4f0409677d100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000005ad9ce1f5035fd62ca96cef16adaaf000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
(0, vitest_1.describe)('Get Address', () => {
|
|
@@ -54,7 +54,7 @@ const MOCK_MODULE_ADDRESS = '0x28de6501fa86f2e6cd0b33c3aabdaeb4a1b93f3f';
|
|
|
54
54
|
},
|
|
55
55
|
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
56
56
|
});
|
|
57
|
-
(0, vitest_1.expect)(address).toEqual('
|
|
57
|
+
(0, vitest_1.expect)(address).toEqual('0x614ea8885429c480a83deddd2e050d411da36d4b');
|
|
58
58
|
});
|
|
59
59
|
(0, vitest_1.test)('Passkey owner', () => {
|
|
60
60
|
const address = (0, startale_1.getAddress)({
|
|
@@ -63,11 +63,11 @@ const MOCK_MODULE_ADDRESS = '0x28de6501fa86f2e6cd0b33c3aabdaeb4a1b93f3f';
|
|
|
63
63
|
},
|
|
64
64
|
owners: {
|
|
65
65
|
type: 'passkey',
|
|
66
|
-
|
|
66
|
+
accounts: [consts_1.passkeyAccount],
|
|
67
67
|
},
|
|
68
68
|
rhinestoneApiKey: consts_1.MOCK_API_KEY,
|
|
69
69
|
});
|
|
70
|
-
(0, vitest_1.expect)(address).toEqual('
|
|
70
|
+
(0, vitest_1.expect)(address).toEqual('0x4d78f6b273d07f2fd24433ebc7a90d89f0d061ae');
|
|
71
71
|
});
|
|
72
72
|
});
|
|
73
73
|
(0, vitest_1.describe)('Get Install Data', () => {
|
|
@@ -20,6 +20,7 @@ declare function setUpRecovery({ rhinestoneAccount, guardians, threshold, }: {
|
|
|
20
20
|
* @param chain Chain to recover ownership on
|
|
21
21
|
* @param provider Provider to use for the recovery
|
|
22
22
|
* @returns Calls to recover ownership
|
|
23
|
+
* @deprecated Use `recoverEcdsaOwnership` or `recoverPasskeyOwnership` instead
|
|
23
24
|
*/
|
|
24
25
|
declare function recover(address: Address, newOwners: OwnerSet, chain: Chain, provider?: ProviderConfig): Promise<Call[]>;
|
|
25
26
|
/**
|
|
@@ -79,6 +80,49 @@ declare function removeOwner(prevOwner: Address, ownerToRemove: Address): Call;
|
|
|
79
80
|
* @returns Call to change the threshold
|
|
80
81
|
*/
|
|
81
82
|
declare function changeThreshold(newThreshold: number): Call;
|
|
83
|
+
/**
|
|
84
|
+
* Add a passkey owner
|
|
85
|
+
* @param pubKeyX Public key X
|
|
86
|
+
* @param pubKeyY Public key Y
|
|
87
|
+
* @param requireUserVerification Whether to require user verification
|
|
88
|
+
* @returns Call to add the passkey owner
|
|
89
|
+
*/
|
|
90
|
+
declare function addPasskeyOwner(pubKeyX: bigint, pubKeyY: bigint, requireUserVerification: boolean): Call;
|
|
91
|
+
/**
|
|
92
|
+
* Remove a passkey owner
|
|
93
|
+
* @param pubKeyX Public key X
|
|
94
|
+
* @param pubKeyY Public key Y
|
|
95
|
+
* @returns Call to remove the passkey owner
|
|
96
|
+
*/
|
|
97
|
+
declare function removePasskeyOwner(pubKeyX: bigint, pubKeyY: bigint): Call;
|
|
98
|
+
/**
|
|
99
|
+
* Change an account's signer threshold (passkey)
|
|
100
|
+
* @param newThreshold New threshold
|
|
101
|
+
* @returns Call to change the threshold
|
|
102
|
+
*/
|
|
103
|
+
declare function changePasskeyThreshold(newThreshold: number): Call;
|
|
104
|
+
/**
|
|
105
|
+
* Recover an account's ownership (ECDSA)
|
|
106
|
+
* @param address Account address
|
|
107
|
+
* @param newOwners New owners
|
|
108
|
+
* @param chain Chain to recover ownership on
|
|
109
|
+
* @param provider Provider to use for the recovery
|
|
110
|
+
* @returns Calls to recover ownership
|
|
111
|
+
*/
|
|
112
|
+
declare function recoverEcdsaOwnership(address: Address, newOwners: OwnableValidatorConfig, chain: Chain, provider?: ProviderConfig): Promise<Call[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Recover an account's ownership (Passkey)
|
|
115
|
+
* @param address Account address
|
|
116
|
+
* @param oldCredentials Old credentials to be replaced (with pubKeyX, pubKeyY)
|
|
117
|
+
* @param newOwners New passkey owners
|
|
118
|
+
* @param chain Chain to recover ownership on
|
|
119
|
+
* @param provider Provider to use for the recovery
|
|
120
|
+
* @returns Calls to recover ownership
|
|
121
|
+
*/
|
|
122
|
+
declare function recoverPasskeyOwnership(address: Address, oldCredentials: {
|
|
123
|
+
pubKeyX: bigint;
|
|
124
|
+
pubKeyY: bigint;
|
|
125
|
+
}[], newOwners: WebauthnValidatorConfig, chain: Chain, provider?: ProviderConfig): Promise<Call[]>;
|
|
82
126
|
/**
|
|
83
127
|
* Enable multi-factor authentication
|
|
84
128
|
* @param rhinestoneAccount Account to enable multi-factor authentication on
|
|
@@ -119,5 +163,5 @@ declare function setSubValidator(id: Hex | number, validator: OwnableValidatorCo
|
|
|
119
163
|
* @returns Call to remove the sub-validator
|
|
120
164
|
*/
|
|
121
165
|
declare function removeSubValidator(id: Hex | number, validator: OwnableValidatorConfig | WebauthnValidatorConfig): Call;
|
|
122
|
-
export { enableEcdsa, enablePasskeys, disableEcdsa, disablePasskeys, addOwner, removeOwner, changeThreshold, recover, setUpRecovery, encodeSmartSessionSignature, enableMultiFactor, disableMultiFactor, changeMultiFactorThreshold, setSubValidator, removeSubValidator, };
|
|
166
|
+
export { enableEcdsa, enablePasskeys, disableEcdsa, disablePasskeys, addOwner, removeOwner, changeThreshold, addPasskeyOwner, removePasskeyOwner, changePasskeyThreshold, recover, recoverEcdsaOwnership, recoverPasskeyOwnership, setUpRecovery, encodeSmartSessionSignature, enableMultiFactor, disableMultiFactor, changeMultiFactorThreshold, setSubValidator, removeSubValidator, };
|
|
123
167
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EAGV,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAA;AAM3C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EAGV,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAA;AAM3C,OAAO,EASL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EACV,IAAI,EACJ,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,uBAAuB,EACxB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAA;AAE7D;;;;;;GAMG;AACH,iBAAS,aAAa,CAAC,EACrB,iBAAiB,EACjB,SAAS,EACT,SAAa,GACd,EAAE;IACD,iBAAiB,EAAE,iBAAiB,CAAA;CACrC,GAAG,QAAQ,UAIX;AAED;;;;;;;;GAQG;AACH,iBAAe,OAAO,CACpB,OAAO,EAAE,OAAO,EAChB,SAAS,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