Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0b40f47
refactor(wrapped-keys-lit-actions): LIT-3920 - Deconstruct existing E…
MaximusHaximus Oct 1, 2024
b939e6d
refactor(wrapped-keys-lit-actions): LIT-3920 - Deconstruct existing S…
MaximusHaximus Oct 1, 2024
72864d2
refactor(wrapped-keys-lit-actions): LIT-3920 - Refactor `common/expor…
MaximusHaximus Oct 1, 2024
7dafaf2
refactor(wrapped-keys-lit-actions): LIT-3920 - Refactor `signTransact…
MaximusHaximus Oct 1, 2024
d928051
refactor(wrapped-keys-lit-actions): LIT-3920 - Refactor `signTransact…
MaximusHaximus Oct 1, 2024
9f9a670
refactor(wrapped-keys-lit-actions): LIT-3920 - Extract usage of `getD…
MaximusHaximus Oct 1, 2024
a294bc4
refactor(wrapped-keys-lit-actions): LIT-3920 - Extract private key ge…
MaximusHaximus Oct 1, 2024
231ac2b
refactor(wrapped-keys-lit-actions): LIT-3920 - Extract encryption of …
MaximusHaximus Oct 1, 2024
65b3a63
refactor(wrapped-keys-lit-actions): LIT-3920 - Normalize function sig…
MaximusHaximus Oct 3, 2024
a72e159
fix(wrapped-keys-lit-actions): LIT-3920 - Add missing `await` in gene…
MaximusHaximus Oct 3, 2024
c294587
test(wrapped-keys-lit-actions): LIT-3920 - Update Solana sign transac…
MaximusHaximus Oct 8, 2024
fe9b60b
test(wrapped-keys-lit-actions): LIT-3920 - Ensure private key used to…
MaximusHaximus Oct 8, 2024
d73b7b4
feat(wrapped-keys-lit-actions): LIT-3920 - Add batchGenerateEncrypted…
MaximusHaximus Oct 8, 2024
4f632f7
test(wrapped-keys): LIT-3920 - Define testBatchGenerateEncryptedKeys …
MaximusHaximus Oct 8, 2024
e830162
chore(wrapped-keys): LIT-3920 - Define new to hold LIT actions that a…
MaximusHaximus Oct 8, 2024
f7de6b6
chore(wrapped-keys): LIT-3920 - run eslint --fix
MaximusHaximus Oct 8, 2024
d5da0e3
types(wrapped-keys): LIT-3920 - Add initial types to facilitate batch…
MaximusHaximus Oct 8, 2024
610d2ef
feat(wrapped-keys): LIT-3920 - Add batchGenerateKeysWithLitAction to …
MaximusHaximus Oct 8, 2024
4d34fb1
refactor(wrapped-keys): LIT-3920 - Extract getKeyTypeFromNetwork into…
MaximusHaximus Oct 8, 2024
ca76c7b
feat(wrapped-keys): LIT-3920 - Add batchGeneratePrivateKeys to client…
MaximusHaximus Oct 8, 2024
13269e7
test(wrapped-keys-lit-actions): LIT-3920 - Rename to testBatchGenerat…
MaximusHaximus Oct 8, 2024
442dae8
test(wrapped-keys-lit-actions): LIT-3920 - Update assertions to handl…
MaximusHaximus Oct 8, 2024
35b33d5
chore(lit-core): LIT-3920 - Revert debug log change
MaximusHaximus Oct 8, 2024
13f0556
chore(wrapped-keys-lit-actions): LIT-3920 - Remove stack logging for …
MaximusHaximus Oct 8, 2024
8f9f029
fix(wrapped-keys-lit-actions): LIT-3920 - Use runOnce on `processActi…
MaximusHaximus Oct 9, 2024
90a43cd
test(wrapped-keys): LIT-3920 - Add assertions for signatures to `batc…
MaximusHaximus Oct 9, 2024
f0ceff6
chore(wrapped-keys): LIT-3920 - Object shorthand notation
MaximusHaximus Oct 9, 2024
e269157
chore(wrapped-keys-lit-actions): LIT-3920 - Add `sync-actions-to-ipfs…
MaximusHaximus Oct 9, 2024
c3869d4
chore(wrapped-keys-lit-actions): LIT-3920 - Move generation of privat…
MaximusHaximus Oct 9, 2024
82de82c
chore(wrapped-keys-lit-actions): LIT-3920 - Remove runOnce in `batchG…
MaximusHaximus Oct 9, 2024
2d47564
chore(wrapped-keys-lit-actions): LIT-3920 - Make batchGeneratePrivate…
MaximusHaximus Oct 9, 2024
f5bdd3f
chore(wrapped-keys-lit-actions): LIT-3920 - Fix test double-line
MaximusHaximus Oct 9, 2024
4874adc
chore(wrapped-keys-lit-actions): LIT-3920 - Rename `getDecryptedKey` …
MaximusHaximus Oct 9, 2024
ea9c087
chore(wrapped-keys-lit-actions): LIT-3920 - Use existing ethers insta…
MaximusHaximus Oct 9, 2024
8d517d8
chore(wrapped-keys-lit-actions): LIT-3920 - Update IPFS CIDs to use c…
MaximusHaximus Oct 9, 2024
15337ad
feat: add advanced controls to executeJs
Ansonhkg Oct 9, 2024
7db654f
chore: better error message
Ansonhkg Oct 9, 2024
bae0338
feat(tinny): add test
Ansonhkg Oct 9, 2024
d664472
fmt
Ansonhkg Oct 9, 2024
77cefc2
Update local-tests/tests/testUseEoaSessionSigsToRequestSingleResponse.ts
Ansonhkg Oct 9, 2024
9a3af57
fmt
Ansonhkg Oct 9, 2024
7f7b387
chore(wrapped-keys-lit-actions): LIT-3920 - Update `batchGenerateKeys…
MaximusHaximus Oct 9, 2024
8e6b8cd
chore(wrapped-keys-lit-actions): LIT-3920 - Add package dependencies …
MaximusHaximus Oct 9, 2024
54053fe
chore(wrapped-keys-lit-actions): LIT-3920 - Add usage instructions to…
MaximusHaximus Oct 9, 2024
765b437
chore(wrapped-keys-lit-actions): LIT-3920 - Rename `generatedPrivateK…
MaximusHaximus Oct 9, 2024
f79e3dc
chore(wrapped-keys-lit-actions): LIT-3920 - Update `signTransactionWi…
MaximusHaximus Oct 9, 2024
2175a8c
chore(wrapped-keys-lit-actions): LIT-3920 - Update `signTransactionWi…
MaximusHaximus Oct 9, 2024
f5a9652
chore(wrapped-keys-lit-actions): LIT-3920 - Fix accidental comment :)
MaximusHaximus Oct 9, 2024
1204c8d
feat(lit-node-client-nodejs): LIT-3920 - Replace `numResponsesRequire…
MaximusHaximus Oct 9, 2024
42fd975
chore(wrapped-keys-lit-actions): LIT-3920 - Remove `runOnce` and use …
MaximusHaximus Oct 10, 2024
84af943
chore(wrapped-keys): LIT-3920 - Update LIT_ACTION_CID_REPOSITORY CIDs…
MaximusHaximus Oct 10, 2024
7f92dcf
test(wrapped-keys-lit-actions): LIT-3920 - Use ethers.utils.computeAd…
MaximusHaximus Oct 10, 2024
22747c8
test(wrapped-keys-lit-actions): LIT-3920 - Remove unused function args
MaximusHaximus Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions local-tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,22 +291,22 @@ setLitActionsCodeToLocal();
tests: {
// testExample,
// testBundleSpeed,
...eoaSessionSigsTests,
...pkpSessionSigsTests,
...litActionSessionSigsTests,
...litActionIpfsIdSessionSigsTests,
...capacityDelegationTests,
...bareAuthSigTests,

...pkpEthersTest.eoaSessionSigs,
...pkpEthersTest.pkpSessionSigs,
...pkpEthersTest.litActionSessionSigs,

...litActionCombiningTests.broadcastAndCombine,
...litActionCombiningTests.decryptAndCombine,
...litActionCombiningTests.ecdsaSignAndCombine,

...relayerTests,
// ...eoaSessionSigsTests,
// ...pkpSessionSigsTests,
// ...litActionSessionSigsTests,
// ...litActionIpfsIdSessionSigsTests,
// ...capacityDelegationTests,
// ...bareAuthSigTests,
//
// ...pkpEthersTest.eoaSessionSigs,
// ...pkpEthersTest.pkpSessionSigs,
// ...pkpEthersTest.litActionSessionSigs,
//
// ...litActionCombiningTests.broadcastAndCombine,
// ...litActionCombiningTests.decryptAndCombine,
// ...litActionCombiningTests.ecdsaSignAndCombine,
//
// ...relayerTests,
...wrappedKeysTests,
},
devEnv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {

/* global ethers */

function validateUnsignedTransaction(unsignedTransaction) {
export function validateUnsignedTransaction(unsignedTransaction) {
const VALID_NETWORKS = ['devnet', 'testnet', 'mainnet-beta'];

if (!VALID_NETWORKS.includes(unsignedTransaction.chain)) {
Expand Down Expand Up @@ -48,7 +48,7 @@ export async function signTransactionSolanaKey({
privateKey,
unsignedTransaction,
}) {
validateUnsignedTransaction(unsignedTransaction);
// Be sure you call validateUnsignedTransaction(unsignedTransaction); before calling this method!

const solanaKeyPair = Keypair.fromSecretKey(Buffer.from(privateKey, 'hex'));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const { signTransactionSolanaKey } = require('./internal/signTransaction');
const {
signTransactionSolanaKey,
validateUnsignedTransaction,
} = require('./internal/signTransaction');
const {
getDecryptedKeyToSingleNode,
} = require('../common/internal/getDecryptedKeyToSingleNode');
Expand All @@ -22,6 +25,8 @@ const { removeSaltFromDecryptedKey } = require('../utils');

(async () => {
try {
validateUnsignedTransaction(unsignedTransaction);

const decryptedPrivateKey = await getDecryptedKeyToSingleNode({
accessControlConditions,
ciphertext,
Expand Down
Loading