You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-wallets/wrapped-keys/custom-wrapped-keys.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,22 @@ Currently the Wrapped Keys SDK includes Lit Action to support the following:
19
19
For Wrapped Keys derived from the `K256` algorithm (commonly known as `ecdsa`):
20
20
21
21
- Generating `K256` (commonly known as `ecdsa`) private keys within a Lit Action
22
-
- Uses the [generateEncryptedEthereumPrivateKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/ethereum/src/generateEncryptedEthereumPrivateKey.js) Lit Action
22
+
- Uses the [generateEncryptedEthereumPrivateKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#generateEncryptedEthereumPrivateKey) Lit Action
23
23
- Signing arbitrary messages using Ethers.js' [signMessage](https://docs.ethers.org/v5/api/signer/#Signer-signMessage)
24
-
- Uses the [signMessageWithEthereumEncryptedKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/ethereum/src/signMessageWithEthereumEncryptedKey.js) Lit Action
24
+
- Uses the [signMessageWithEthereumEncryptedKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#signMessageWithEthereumEncryptedKey) Lit Action
25
25
- Signing Ethers.js transaction objects using [signTransaction](https://docs.ethers.org/v5/api/signer/#Signer-signTransaction)
26
-
- Uses the [signTransactionWithEthereumEncryptedKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/ethereum/src/signTransactionWithEthereumEncryptedKey.js) Lit Action
26
+
- Uses the [signTransactionWithEthereumEncryptedKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#signTransactionWithEthereumEncryptedKey) Lit Action
27
27
28
28
### Wrapped Keys Derived `ed25519` Algorithm
29
29
30
30
For Wrapped Keys derived from the `ed25519` algorithm (used for Solana private key):
31
31
32
32
- Generating `ed25519` private keys within a Lit Action using the [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) SDK
33
-
- Uses the [generateEncryptedSolanaPrivateKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/solana/src/generateEncryptedSolanaPrivateKey.js) Lit Action
33
+
- Uses the [generateEncryptedSolanaPrivateKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#signTransactionWithEthereumEncryptedKey) Lit Action
34
34
- Signing arbitrary messages using the `@solana/web3.js` SDK
35
-
- Uses the [signMessageWithSolanaEncryptedKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/solana/src/signMessageWithSolanaEncryptedKey.js) Lit Action
35
+
- Uses the [signMessageWithSolanaEncryptedKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#signTransactionWithEthereumEncryptedKey) Lit Action
36
36
- Signing Solana transaction objects using the `@solana/web3.js` SDK
37
-
- uses the [signTransactionWithSolanaEncryptedKey](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/src/lib/litActions/solana/src/signTransactionWithSolanaEncryptedKey.js) Lit Action
37
+
- uses the [signTransactionWithSolanaEncryptedKey](https://v6-api-doc-lit-js-sdk.vercel.app/modules/wrapped_keys_lit_actions_src.html#signTransactionWithEthereumEncryptedKey) Lit Action
38
38
39
39
## Implementing a Custom Lit Action
40
40
@@ -68,7 +68,7 @@ If you manually encrypt your private key with custom Access Control Conditions,
68
68
69
69
The [Ethers.js v5](https://docs.ethers.org/v5/) SDK is already made available within a Lit Action. For any other SDK, you'll need to bundle the code with your Lit Action. Lit Actions execute within a [Deno](https://deno.com/) environment, so any APIs that aren't supported by Deno will need to be accounted for via polyfills and/or shims.
70
70
71
-
As a reference implementation, the Wrapped Keys SDK uses [esbuild](https://esbuild.github.io/) to bundle the `@solana/web3.js` SDK with the Lit Action code, and provide the required shim. [This](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/esbuild.config.js) is the `esbuild.config.js` used and [this](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys/buffer.shim.js) is the shim used to include [buffer](https://www.npmjs.com/package/buffer) within the bundled Lit Action code.
71
+
As a reference implementation, the Wrapped Keys SDK uses [esbuild](https://esbuild.github.io/) to bundle the `@solana/web3.js` SDK with the Lit Action code, and provide the required shim. [This](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys-lit-actions/esbuild.config.js) is the `esbuild.config.js` used and [this](https://github.com/LIT-Protocol/js-sdk/blob/master/packages/wrapped-keys-lit-actions/buffer.shim.js) is the shim used to include [buffer](https://www.npmjs.com/package/buffer) within the bundled Lit Action code.
72
72
73
73
Then, as you can see in the [Solana Wrapped Keys Lit Actions](#wrapped-keys-derived-ed25519-algorithm), various `@solana/web3.js` exports are `import`ed into the Lit Action code as usual.
0 commit comments