@mysten/signers 0.1.17 → 0.2.1

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.
@@ -0,0 +1,63 @@
1
+ import type SuiLedgerClient from '@mysten/ledgerjs-hw-app-sui';
2
+ import type { SuiClient } from '@mysten/sui/client';
3
+ import type { SignatureWithBytes } from '@mysten/sui/cryptography';
4
+ import { Signer } from '@mysten/sui/cryptography';
5
+ import { Ed25519PublicKey } from '@mysten/sui/keypairs/ed25519';
6
+ /**
7
+ * Configuration options for initializing the LedgerSigner.
8
+ */
9
+ export interface LedgerSignerOptions {
10
+ publicKey: Ed25519PublicKey;
11
+ derivationPath: string;
12
+ ledgerClient: SuiLedgerClient;
13
+ suiClient: SuiClient;
14
+ }
15
+ /**
16
+ * Ledger integrates with the Sui blockchain to provide signing capabilities using Ledger devices.
17
+ */
18
+ export declare class LedgerSigner extends Signer {
19
+ #private;
20
+ /**
21
+ * Creates an instance of LedgerSigner. It's expected to call the static `fromDerivationPath` method to create an instance.
22
+ * @example
23
+ * ```
24
+ * const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);
25
+ * ```
26
+ */
27
+ constructor({ publicKey, derivationPath, ledgerClient, suiClient }: LedgerSignerOptions);
28
+ /**
29
+ * Retrieves the key scheme used by this signer.
30
+ */
31
+ getKeyScheme(): "ED25519";
32
+ /**
33
+ * Retrieves the public key associated with this signer.
34
+ * @returns The Ed25519PublicKey instance.
35
+ */
36
+ getPublicKey(): Ed25519PublicKey;
37
+ /**
38
+ * Signs the provided transaction bytes.
39
+ * @returns The signed transaction bytes and signature.
40
+ */
41
+ signTransaction(bytes: Uint8Array): Promise<SignatureWithBytes>;
42
+ /**
43
+ * Signs the provided personal message.
44
+ * @returns The signed message bytes and signature.
45
+ */
46
+ signPersonalMessage(bytes: Uint8Array): Promise<SignatureWithBytes>;
47
+ /**
48
+ * Prepares the signer by fetching and setting the public key from a Ledger device.
49
+ * It is recommended to initialize an `LedgerSigner` instance using this function.
50
+ * @returns A promise that resolves once a `LedgerSigner` instance is prepared (public key is set).
51
+ */
52
+ static fromDerivationPath(derivationPath: string, ledgerClient: SuiLedgerClient, suiClient: SuiClient): Promise<LedgerSigner>;
53
+ /**
54
+ * Generic signing is not supported by Ledger.
55
+ * @throws Always throws an error indicating generic signing is unsupported.
56
+ */
57
+ sign(): never;
58
+ /**
59
+ * Generic signing is not supported by Ledger.
60
+ * @throws Always throws an error indicating generic signing is unsupported.
61
+ */
62
+ signWithIntent(): never;
63
+ }
@@ -0,0 +1,168 @@
1
+ var __typeError = (msg) => {
2
+ throw TypeError(msg);
3
+ };
4
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
5
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
9
+ var _derivationPath, _publicKey, _ledgerClient, _suiClient, _LedgerSigner_instances, getClearSigningOptions_fn;
10
+ import { messageWithIntent, Signer, toSerializedSignature } from "@mysten/sui/cryptography";
11
+ import { Ed25519PublicKey } from "@mysten/sui/keypairs/ed25519";
12
+ import { Transaction } from "@mysten/sui/transactions";
13
+ import { toBase64 } from "@mysten/sui/utils";
14
+ import { SuiMoveObject } from "./bcs.js";
15
+ const _LedgerSigner = class _LedgerSigner extends Signer {
16
+ /**
17
+ * Creates an instance of LedgerSigner. It's expected to call the static `fromDerivationPath` method to create an instance.
18
+ * @example
19
+ * ```
20
+ * const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);
21
+ * ```
22
+ */
23
+ constructor({ publicKey, derivationPath, ledgerClient, suiClient }) {
24
+ super();
25
+ __privateAdd(this, _LedgerSigner_instances);
26
+ __privateAdd(this, _derivationPath);
27
+ __privateAdd(this, _publicKey);
28
+ __privateAdd(this, _ledgerClient);
29
+ __privateAdd(this, _suiClient);
30
+ __privateSet(this, _publicKey, publicKey);
31
+ __privateSet(this, _derivationPath, derivationPath);
32
+ __privateSet(this, _ledgerClient, ledgerClient);
33
+ __privateSet(this, _suiClient, suiClient);
34
+ }
35
+ /**
36
+ * Retrieves the key scheme used by this signer.
37
+ */
38
+ getKeyScheme() {
39
+ return "ED25519";
40
+ }
41
+ /**
42
+ * Retrieves the public key associated with this signer.
43
+ * @returns The Ed25519PublicKey instance.
44
+ */
45
+ getPublicKey() {
46
+ return __privateGet(this, _publicKey);
47
+ }
48
+ /**
49
+ * Signs the provided transaction bytes.
50
+ * @returns The signed transaction bytes and signature.
51
+ */
52
+ async signTransaction(bytes) {
53
+ const transactionOptions = await __privateMethod(this, _LedgerSigner_instances, getClearSigningOptions_fn).call(this, bytes).catch(() => ({
54
+ // Fail gracefully so network errors or serialization issues don't break transaction signing:
55
+ bcsObjects: []
56
+ }));
57
+ const intentMessage = messageWithIntent("TransactionData", bytes);
58
+ const { signature } = await __privateGet(this, _ledgerClient).signTransaction(
59
+ __privateGet(this, _derivationPath),
60
+ intentMessage,
61
+ transactionOptions
62
+ );
63
+ return {
64
+ bytes: toBase64(bytes),
65
+ signature: toSerializedSignature({
66
+ signature,
67
+ signatureScheme: this.getKeyScheme(),
68
+ publicKey: __privateGet(this, _publicKey)
69
+ })
70
+ };
71
+ }
72
+ /**
73
+ * Signs the provided personal message.
74
+ * @returns The signed message bytes and signature.
75
+ */
76
+ async signPersonalMessage(bytes) {
77
+ const intentMessage = messageWithIntent("PersonalMessage", bytes);
78
+ const { signature } = await __privateGet(this, _ledgerClient).signTransaction(
79
+ __privateGet(this, _derivationPath),
80
+ intentMessage
81
+ );
82
+ return {
83
+ bytes: toBase64(bytes),
84
+ signature: toSerializedSignature({
85
+ signature,
86
+ signatureScheme: this.getKeyScheme(),
87
+ publicKey: __privateGet(this, _publicKey)
88
+ })
89
+ };
90
+ }
91
+ /**
92
+ * Prepares the signer by fetching and setting the public key from a Ledger device.
93
+ * It is recommended to initialize an `LedgerSigner` instance using this function.
94
+ * @returns A promise that resolves once a `LedgerSigner` instance is prepared (public key is set).
95
+ */
96
+ static async fromDerivationPath(derivationPath, ledgerClient, suiClient) {
97
+ const { publicKey } = await ledgerClient.getPublicKey(derivationPath);
98
+ if (!publicKey) {
99
+ throw new Error("Failed to get public key from Ledger.");
100
+ }
101
+ return new _LedgerSigner({
102
+ derivationPath,
103
+ publicKey: new Ed25519PublicKey(publicKey),
104
+ ledgerClient,
105
+ suiClient
106
+ });
107
+ }
108
+ /**
109
+ * Generic signing is not supported by Ledger.
110
+ * @throws Always throws an error indicating generic signing is unsupported.
111
+ */
112
+ sign() {
113
+ throw new Error("Ledger Signer does not support generic signing.");
114
+ }
115
+ /**
116
+ * Generic signing is not supported by Ledger.
117
+ * @throws Always throws an error indicating generic signing is unsupported.
118
+ */
119
+ signWithIntent() {
120
+ throw new Error("Ledger Signer does not support generic signing.");
121
+ }
122
+ };
123
+ _derivationPath = new WeakMap();
124
+ _publicKey = new WeakMap();
125
+ _ledgerClient = new WeakMap();
126
+ _suiClient = new WeakMap();
127
+ _LedgerSigner_instances = new WeakSet();
128
+ getClearSigningOptions_fn = async function(transactionBytes) {
129
+ const transaction = Transaction.from(transactionBytes);
130
+ const data = transaction.getData();
131
+ const gasObjectIds = data.gasData.payment?.map((object) => object.objectId) ?? [];
132
+ const inputObjectIds = data.inputs.map((input) => {
133
+ return input.$kind === "Object" && input.Object.$kind === "ImmOrOwnedObject" ? input.Object.ImmOrOwnedObject.objectId : null;
134
+ }).filter((objectId) => !!objectId);
135
+ const objects = await __privateGet(this, _suiClient).multiGetObjects({
136
+ ids: [...gasObjectIds, ...inputObjectIds],
137
+ options: {
138
+ showBcs: true,
139
+ showPreviousTransaction: true,
140
+ showStorageRebate: true,
141
+ showOwner: true
142
+ }
143
+ });
144
+ const bcsObjects = objects.map((object) => {
145
+ if (object.error || !object.data || object.data.bcs?.dataType !== "moveObject") {
146
+ return null;
147
+ }
148
+ return SuiMoveObject.serialize({
149
+ data: {
150
+ MoveObject: {
151
+ type: object.data.bcs.type,
152
+ hasPublicTransfer: object.data.bcs.hasPublicTransfer,
153
+ version: object.data.bcs.version,
154
+ contents: object.data.bcs.bcsBytes
155
+ }
156
+ },
157
+ owner: object.data.owner,
158
+ previousTransaction: object.data.previousTransaction,
159
+ storageRebate: object.data.storageRebate
160
+ }).toBytes();
161
+ }).filter((bcsBytes) => !!bcsBytes);
162
+ return { bcsObjects };
163
+ };
164
+ let LedgerSigner = _LedgerSigner;
165
+ export {
166
+ LedgerSigner
167
+ };
168
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/ledger/index.ts"],
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type SuiLedgerClient from '@mysten/ledgerjs-hw-app-sui';\nimport type { SuiClient } from '@mysten/sui/client';\nimport type { SignatureWithBytes } from '@mysten/sui/cryptography';\nimport { messageWithIntent, Signer, toSerializedSignature } from '@mysten/sui/cryptography';\nimport { Ed25519PublicKey } from '@mysten/sui/keypairs/ed25519';\nimport { Transaction } from '@mysten/sui/transactions';\nimport { toBase64 } from '@mysten/sui/utils';\n\nimport { SuiMoveObject } from './bcs.js';\n\n/**\n * Configuration options for initializing the LedgerSigner.\n */\nexport interface LedgerSignerOptions {\n\tpublicKey: Ed25519PublicKey;\n\tderivationPath: string;\n\tledgerClient: SuiLedgerClient;\n\tsuiClient: SuiClient;\n}\n\n/**\n * Ledger integrates with the Sui blockchain to provide signing capabilities using Ledger devices.\n */\nexport class LedgerSigner extends Signer {\n\t#derivationPath: string;\n\t#publicKey: Ed25519PublicKey;\n\t#ledgerClient: SuiLedgerClient;\n\t#suiClient: SuiClient;\n\n\t/**\n\t * Creates an instance of LedgerSigner. It's expected to call the static `fromDerivationPath` method to create an instance.\n\t * @example\n\t * ```\n\t * const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);\n\t * ```\n\t */\n\tconstructor({ publicKey, derivationPath, ledgerClient, suiClient }: LedgerSignerOptions) {\n\t\tsuper();\n\t\tthis.#publicKey = publicKey;\n\t\tthis.#derivationPath = derivationPath;\n\t\tthis.#ledgerClient = ledgerClient;\n\t\tthis.#suiClient = suiClient;\n\t}\n\n\t/**\n\t * Retrieves the key scheme used by this signer.\n\t */\n\toverride getKeyScheme() {\n\t\treturn 'ED25519' as const;\n\t}\n\n\t/**\n\t * Retrieves the public key associated with this signer.\n\t * @returns The Ed25519PublicKey instance.\n\t */\n\toverride getPublicKey() {\n\t\treturn this.#publicKey;\n\t}\n\n\t/**\n\t * Signs the provided transaction bytes.\n\t * @returns The signed transaction bytes and signature.\n\t */\n\toverride async signTransaction(bytes: Uint8Array): Promise<SignatureWithBytes> {\n\t\tconst transactionOptions = await this.#getClearSigningOptions(bytes).catch(() => ({\n\t\t\t// Fail gracefully so network errors or serialization issues don't break transaction signing:\n\t\t\tbcsObjects: [],\n\t\t}));\n\n\t\tconst intentMessage = messageWithIntent('TransactionData', bytes);\n\t\tconst { signature } = await this.#ledgerClient.signTransaction(\n\t\t\tthis.#derivationPath,\n\t\t\tintentMessage,\n\t\t\ttransactionOptions,\n\t\t);\n\n\t\treturn {\n\t\t\tbytes: toBase64(bytes),\n\t\t\tsignature: toSerializedSignature({\n\t\t\t\tsignature,\n\t\t\t\tsignatureScheme: this.getKeyScheme(),\n\t\t\t\tpublicKey: this.#publicKey,\n\t\t\t}),\n\t\t};\n\t}\n\n\t/**\n\t * Signs the provided personal message.\n\t * @returns The signed message bytes and signature.\n\t */\n\toverride async signPersonalMessage(bytes: Uint8Array): Promise<SignatureWithBytes> {\n\t\tconst intentMessage = messageWithIntent('PersonalMessage', bytes);\n\t\tconst { signature } = await this.#ledgerClient.signTransaction(\n\t\t\tthis.#derivationPath,\n\t\t\tintentMessage,\n\t\t);\n\n\t\treturn {\n\t\t\tbytes: toBase64(bytes),\n\t\t\tsignature: toSerializedSignature({\n\t\t\t\tsignature,\n\t\t\t\tsignatureScheme: this.getKeyScheme(),\n\t\t\t\tpublicKey: this.#publicKey,\n\t\t\t}),\n\t\t};\n\t}\n\n\t/**\n\t * Prepares the signer by fetching and setting the public key from a Ledger device.\n\t * It is recommended to initialize an `LedgerSigner` instance using this function.\n\t * @returns A promise that resolves once a `LedgerSigner` instance is prepared (public key is set).\n\t */\n\tstatic async fromDerivationPath(\n\t\tderivationPath: string,\n\t\tledgerClient: SuiLedgerClient,\n\t\tsuiClient: SuiClient,\n\t) {\n\t\tconst { publicKey } = await ledgerClient.getPublicKey(derivationPath);\n\t\tif (!publicKey) {\n\t\t\tthrow new Error('Failed to get public key from Ledger.');\n\t\t}\n\n\t\treturn new LedgerSigner({\n\t\t\tderivationPath,\n\t\t\tpublicKey: new Ed25519PublicKey(publicKey),\n\t\t\tledgerClient,\n\t\t\tsuiClient,\n\t\t});\n\t}\n\n\tasync #getClearSigningOptions(transactionBytes: Uint8Array) {\n\t\tconst transaction = Transaction.from(transactionBytes);\n\t\tconst data = transaction.getData();\n\n\t\tconst gasObjectIds = data.gasData.payment?.map((object) => object.objectId) ?? [];\n\t\tconst inputObjectIds = data.inputs\n\t\t\t.map((input) => {\n\t\t\t\treturn input.$kind === 'Object' && input.Object.$kind === 'ImmOrOwnedObject'\n\t\t\t\t\t? input.Object.ImmOrOwnedObject.objectId\n\t\t\t\t\t: null;\n\t\t\t})\n\t\t\t.filter((objectId): objectId is string => !!objectId);\n\n\t\tconst objects = await this.#suiClient.multiGetObjects({\n\t\t\tids: [...gasObjectIds, ...inputObjectIds],\n\t\t\toptions: {\n\t\t\t\tshowBcs: true,\n\t\t\t\tshowPreviousTransaction: true,\n\t\t\t\tshowStorageRebate: true,\n\t\t\t\tshowOwner: true,\n\t\t\t},\n\t\t});\n\n\t\t// NOTE: We should probably get rid of this manual serialization logic in favor of using the\n\t\t// already serialized object bytes from the GraphQL API once there is more mainstream support\n\t\t// for it + we can enforce the transport type on the Sui client.\n\t\tconst bcsObjects = objects\n\t\t\t.map((object) => {\n\t\t\t\tif (object.error || !object.data || object.data.bcs?.dataType !== 'moveObject') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn SuiMoveObject.serialize({\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tMoveObject: {\n\t\t\t\t\t\t\ttype: object.data.bcs.type,\n\t\t\t\t\t\t\thasPublicTransfer: object.data.bcs.hasPublicTransfer,\n\t\t\t\t\t\t\tversion: object.data.bcs.version,\n\t\t\t\t\t\t\tcontents: object.data.bcs.bcsBytes,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\towner: object.data.owner!,\n\t\t\t\t\tpreviousTransaction: object.data.previousTransaction!,\n\t\t\t\t\tstorageRebate: object.data.storageRebate!,\n\t\t\t\t}).toBytes();\n\t\t\t})\n\t\t\t.filter((bcsBytes): bcsBytes is Uint8Array => !!bcsBytes);\n\n\t\treturn { bcsObjects };\n\t}\n\n\t/**\n\t * Generic signing is not supported by Ledger.\n\t * @throws Always throws an error indicating generic signing is unsupported.\n\t */\n\toverride sign(): never {\n\t\tthrow new Error('Ledger Signer does not support generic signing.');\n\t}\n\n\t/**\n\t * Generic signing is not supported by Ledger.\n\t * @throws Always throws an error indicating generic signing is unsupported.\n\t */\n\toverride signWithIntent(): never {\n\t\tthrow new Error('Ledger Signer does not support generic signing.');\n\t}\n}\n"],
5
+ "mappings": ";;;;;;;;AAAA;AAMA,SAAS,mBAAmB,QAAQ,6BAA6B;AACjE,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AAEzB,SAAS,qBAAqB;AAevB,MAAM,gBAAN,MAAM,sBAAqB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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