Skip to content

Commit d74b914

Browse files
authored
Merge pull request #516 from LIT-Protocol/feature/release-private-key-after-use
manually release private key in tests
2 parents da77162 + caf96ad commit d74b914

File tree

79 files changed

+173
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+173
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
timeout-minutes: 30
3838
env:
39-
NETWORK: cayenne
39+
NETWORK: datil-dev
4040
DEBUG: true
4141
MAX_ATTEMPTS: 3
4242
steps:

local-tests/setup/tinny-environment.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,6 @@ export class TinnyEnvironment {
174174
this.processEnvs.KEY_IN_USE[index] = true; // Mark the key as in use
175175
// console.log('[𐬺🧪 Tinny Environment𐬺] 🔑 Selected key at index', index); // Log a message indicating that we have selected a key
176176

177-
// Set a timer to automatically release the key after 10 seconds
178-
setTimeout(() => {
179-
this.releasePrivateKey(index);
180-
// console.log(
181-
// '[𐬺🧪 Tinny Environment𐬺] 🔓 Automatically released key at index',
182-
// index,
183-
// `after ${this.processEnvs.TIME_TO_RELEASE_KEY / 10000} seconds`
184-
// );
185-
}, this.processEnvs.TIME_TO_RELEASE_KEY);
186-
187177
return { privateKey: this.processEnvs.PRIVATE_KEYS[index], index }; // Return the key and its index
188178
} else {
189179
// console.log('[𐬺🧪 Tinny Environment𐬺] No available keys. Waiting...'); // Log a message indicating that we are waiting
@@ -195,6 +185,18 @@ export class TinnyEnvironment {
195185
}
196186
}
197187

188+
/**
189+
* Marks a private key as available again after use.
190+
* @param {number} index - The index of the key to mark as available.
191+
*/
192+
releasePrivateKeyFromUser(user: TinnyPerson) {
193+
const index = this.processEnvs.PRIVATE_KEYS.indexOf(user.privateKey);
194+
this.processEnvs.KEY_IN_USE[index] = false;
195+
// console.log(
196+
// `[𐬺🧪 Tinny Environment𐬺] 🪽 Released key at index ${index}. Thank you for your service!`
197+
// );
198+
}
199+
198200
/**
199201
* Marks a private key as available again after use.
200202
* @param {number} index - The index of the key to mark as available.

local-tests/tests/test-example.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const testExample = async (devEnv: TinnyEnvironment) => {
3030

3131
console.log('aliceExecuteJsRes:', aliceExecuteJsRes);
3232

33+
devEnv.releasePrivateKeyFromUser(alice);
34+
3335
// console.log('aliceEoaSessionSigs: ', aliceEoaSessionSigs);
3436

3537
// const alicePkpSessionSigs = await getPkpSessionSigs(devEnv, alice);

local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export const testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs = async (
8585

8686
console.log('✅ res:', res);
8787

88+
devEnv.releasePrivateKeyFromUser(alice);
89+
devEnv.releasePrivateKeyFromUser(bob);
90+
8891
// -- Expected output:
8992
// {
9093
// claims: {},

local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherWalletToExecuteJs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export const testDelegatingCapacityCreditsNFTToAnotherWalletToExecuteJs =
6464
},
6565
});
6666

67+
devEnv.releasePrivateKeyFromUser(alice);
68+
devEnv.releasePrivateKeyFromUser(bob);
69+
6770
// Expected output:
6871
// {
6972
// claims: {},

local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherWalletToPkpSign.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export const testDelegatingCapacityCreditsNFTToAnotherWalletToPkpSign = async (
5656
pubKey: bob.pkp.publicKey,
5757
});
5858

59+
devEnv.releasePrivateKeyFromUser(alice);
60+
devEnv.releasePrivateKeyFromUser(bob);
61+
5962
// -- Expected output:
6063
// {
6164
// r: "25e04b2abdf220b1374b19228bc292bab71a3224a635726a46d4cbe3a62bb636",

local-tests/tests/testExecuteJsBroadcastAndCollect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const testExecuteJsBroadcastAndCollect = async (
3838
})();`,
3939
jsParams: {},
4040
});
41+
devEnv.releasePrivateKeyFromUser(alice);
4142

4243
const response = res.response;
4344
if (!response) {

local-tests/tests/testExecuteJsDecryptAndCombine.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export const testExecutJsDecryptAndCombine = async (
7878
},
7979
});
8080

81+
devEnv.releasePrivateKeyFromUser(alice);
82+
8183
if (res.response !== 'Hello world') {
8284
throw new Error('content does not match what was expected');
8385
}

local-tests/tests/testExecuteJsSignAndCombineEcdsa.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export const testExecuteJsSignAndCombineEcdsa = async (
7272
},
7373
});
7474

75+
devEnv.releasePrivateKeyFromUser(alice);
76+
devEnv.releasePrivateKeyFromUser(bob);
77+
7578
/**
7679
Response format
7780
{

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSign = async (
5656
console.log('✅ recoveredAddr:', recoveredAddr);
5757
} catch (e) {
5858
throw new Error('❌ Error: ' + e.message);
59+
} finally {
60+
devEnv.releasePrivateKeyFromUser(alice);
5961
}
6062
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTransaction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTransaction = async (
103103
} else {
104104
throw new Error(`❌ Error: ${e.toString()}`);
105105
}
106+
} finally {
107+
devEnv.releasePrivateKeyFromUser(alice);
106108
}
107109
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTypedData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTypedData = async (
9191
}
9292
} catch (e) {
9393
throw new Error(`❌ ${e.toString()}`);
94+
} finally {
95+
devEnv.releasePrivateKeyFromUser(alice);
9496
}
9597
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTypedDataUtil.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTypedDataUtil = async (
8888
}
8989
} catch (e) {
9090
throw new Error(`❌ ${e.toString()}`);
91+
} finally {
92+
devEnv.releasePrivateKeyFromUser(alice);
9193
}
9294
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTypedDataV1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTypedDataV1 = async (
7373
console.log('recoveredAddr: ', recoveredAddr);
7474
} catch (e) {
7575
throw new Error(`❌ ${e.toString()}`);
76+
} finally {
77+
devEnv.releasePrivateKeyFromUser(alice);
7678
}
7779
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTypedDataV3.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTypedDataV3 = async (
101101
}
102102
} catch (e) {
103103
throw new Error(`❌ ${e.toString()}`);
104+
} finally {
105+
devEnv.releasePrivateKeyFromUser(alice);
104106
}
105107
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToEthSignTypedDataV4.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ export const testPkpEthersWithEoaSessionSigsToEthSignTypedDataV4 = async (
101101
}
102102
} catch (e) {
103103
throw new Error(`❌ ${e.toString()}`);
104+
} finally {
105+
devEnv.releasePrivateKeyFromUser(alice);
104106
}
105107
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToPersonalSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ export const testPkpEthersWithEoaSessionSigsToPersonalSign = async (
5757
console.log('✅ personal_sign recoveredAddr:', recoveredAddr);
5858
} catch (e) {
5959
throw new Error('❌ Error: ' + e.message);
60+
} finally {
61+
devEnv.releasePrivateKeyFromUser(alice);
6062
}
6163
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToSendTx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ export const testPkpEthersWithEoaSessionSigsToSendTx = async (
5858
} else {
5959
throw new Error(`❌ Error: ${e.toString()}`);
6060
}
61+
} finally {
62+
devEnv.releasePrivateKeyFromUser(alice);
6163
}
6264
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToSignMessage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ export const testPkpEthersWithEoaSessionSigsToSignMessage = async (
2929
console.log('✅ signature:', signature);
3030
} catch (e) {
3131
throw new Error('❌ Error: ' + e.message);
32+
} finally {
33+
devEnv.releasePrivateKeyFromUser(alice);
3234
}
3335
};

local-tests/tests/testPkpEthersWithEoaSessionSigsToSignWithAuthContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ export const testPkpEthersWithEoaSessionSigsToSignWithAuthContext = async (
6666
console.log('✅ signature:', signature);
6767
} catch (e) {
6868
throw new Error('❌ Error: ' + e.message);
69+
} finally {
70+
devEnv.releasePrivateKeyFromUser(alice);
6971
}
7072
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSign = async (
5656
console.log('✅ recoveredAddr:', recoveredAddr);
5757
} catch (e) {
5858
throw new Error('❌ Error: ' + e.message);
59+
} finally {
60+
devEnv.releasePrivateKeyFromUser(alice);
5961
}
6062
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTransaction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTransaction = async (
103103
} else {
104104
throw new Error(`❌ Error: ${e.toString()}`);
105105
}
106+
} finally {
107+
devEnv.releasePrivateKeyFromUser(alice);
106108
}
107109
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTypedData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTypedData = async (
9191
}
9292
} catch (e) {
9393
throw new Error(`❌ ${e.toString()}`);
94+
} finally {
95+
devEnv.releasePrivateKeyFromUser(alice);
9496
}
9597
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTypedDataUtil.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTypedDataUtil =
8383
}
8484
} catch (e) {
8585
throw new Error(`❌ ${e.toString()}`);
86+
} finally {
87+
devEnv.releasePrivateKeyFromUser(alice);
8688
}
8789
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV1 = async (
7373
console.log('recoveredAddr: ', recoveredAddr);
7474
} catch (e) {
7575
throw new Error(`❌ ${e.toString()}`);
76+
} finally {
77+
devEnv.releasePrivateKeyFromUser(alice);
7678
}
7779
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV3.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV3 = async (
100100
}
101101
} catch (e) {
102102
throw new Error(`❌ ${e.toString()}`);
103+
} finally {
104+
devEnv.releasePrivateKeyFromUser(alice);
103105
}
104106
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV4.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ export const testPkpEthersWithLitActionSessionSigsToEthSignTypedDataV4 = async (
101101
}
102102
} catch (e) {
103103
throw new Error(`❌ ${e.toString()}`);
104+
} finally {
105+
devEnv.releasePrivateKeyFromUser(alice);
104106
}
105107
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToPersonalSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ export const testPkpEthersWithLitActionSessionSigsToPersonalSign = async (
5757
console.log('✅ personal_sign recoveredAddr:', recoveredAddr);
5858
} catch (e) {
5959
throw new Error('❌ Error: ' + e.message);
60+
} finally {
61+
devEnv.releasePrivateKeyFromUser(alice);
6062
}
6163
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToSendTx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ export const testPkpEthersWithLitActionSessionSigsToSendTx = async (
5858
} else {
5959
throw new Error(`❌ Error: ${e.toString()}`);
6060
}
61+
} finally {
62+
devEnv.releasePrivateKeyFromUser(alice);
6163
}
6264
};

local-tests/tests/testPkpEthersWithLitActionSessionSigsToSignMessage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ export const testPkpEthersWithLitActionSessionSigsToSignMessage = async (
2828
console.log('✅ signature:', signature);
2929
} catch (e) {
3030
throw new Error('❌ Error: ' + e.message);
31+
} finally {
32+
devEnv.releasePrivateKeyFromUser(alice);
3133
}
3234
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSign = async (
5656
console.log('✅ recoveredAddr:', recoveredAddr);
5757
} catch (e) {
5858
throw new Error('❌ Error: ' + e.message);
59+
} finally {
60+
devEnv.releasePrivateKeyFromUser(alice);
5961
}
6062
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTransaction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTransaction = async (
103103
} else {
104104
throw new Error(`❌ Error: ${e.toString()}`);
105105
}
106+
} finally {
107+
devEnv.releasePrivateKeyFromUser(alice);
106108
}
107109
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTypedData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTypedData = async (
9191
}
9292
} catch (e) {
9393
throw new Error(`❌ ${e.toString()}`);
94+
} finally {
95+
devEnv.releasePrivateKeyFromUser(alice);
9496
}
9597
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTypedDataUtil.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTypedDataUtil = async (
8484
}
8585
} catch (e) {
8686
throw new Error(`❌ ${e.toString()}`);
87+
} finally {
88+
devEnv.releasePrivateKeyFromUser(alice);
8789
}
8890
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTypedDataV1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTypedDataV1 = async (
7373
console.log('recoveredAddr: ', recoveredAddr);
7474
} catch (e) {
7575
throw new Error(`❌ ${e.toString()}`);
76+
} finally {
77+
devEnv.releasePrivateKeyFromUser(alice);
7678
}
7779
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTypedDataV3.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTypedDataV3 = async (
100100
}
101101
} catch (e) {
102102
throw new Error(`❌ ${e.toString()}`);
103+
} finally {
104+
devEnv.releasePrivateKeyFromUser(alice);
103105
}
104106
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToEthSignTypedDataV4.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,7 @@ export const testPkpEthersWithPkpSessionSigsToEthSignTypedDataV4 = async (
101101
}
102102
} catch (e) {
103103
throw new Error(`❌ ${e.toString()}`);
104+
} finally {
105+
devEnv.releasePrivateKeyFromUser(alice);
104106
}
105107
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToPersonalSign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ export const testPkpEthersWithPkpSessionSigsToPersonalSign = async (
5757
console.log('✅ personal_sign recoveredAddr:', recoveredAddr);
5858
} catch (e) {
5959
throw new Error('❌ Error: ' + e.message);
60+
} finally {
61+
devEnv.releasePrivateKeyFromUser(alice);
6062
}
6163
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToSendTx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ export const testPkpEthersWithPkpSessionSigsToSendTx = async (
5858
} else {
5959
throw new Error(`❌ Error: ${e.toString()}`);
6060
}
61+
} finally {
62+
devEnv.releasePrivateKeyFromUser(alice);
6163
}
6264
};

local-tests/tests/testPkpEthersWithPkpSessionSigsToSignMessage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ export const testPkpEthersWithPkpSessionSigsToSignMessage = async (
2828
console.log('✅ signature:', signature);
2929
} catch (e) {
3030
throw new Error('❌ Error: ' + e.message);
31+
} finally {
32+
devEnv.releasePrivateKeyFromUser(alice);
3133
}
3234
};

local-tests/tests/testUseCapacityDelegationAuthSigWithUnspecifiedCapacityTokenIdToExecuteJs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ export const testUseCapacityDelegationAuthSigWithUnspecifiedCapacityTokenIdToExe
6868
},
6969
});
7070

71+
devEnv.releasePrivateKeyFromUser(alice);
72+
devEnv.releasePrivateKeyFromUser(bob);
73+
7174
// Expected output:
7275
// {
7376
// claims: {},

local-tests/tests/testUseCapacityDelegationAuthSigWithUnspecifiedCapacityTokenIdToPkpSign.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export const testUseCapacityDelegationAuthSigWithUnspecifiedCapacityTokenIdToPkp
5858
pubKey: bob.pkp.publicKey,
5959
});
6060

61+
devEnv.releasePrivateKeyFromUser(alice);
62+
devEnv.releasePrivateKeyFromUser(bob);
63+
6164
// -- Expected output:
6265
// {
6366
// r: "25e04b2abdf220b1374b19228bc292bab71a3224a635726a46d4cbe3a62bb636",

local-tests/tests/testUseCapacityDelegationAuthSigWithUnspecifiedDelegateesToExecuteJs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ export const testUseCapacityDelegationAuthSigWithUnspecifiedDelegateesToExecuteJ
6666
},
6767
});
6868

69+
devEnv.releasePrivateKeyFromUser(alice);
70+
devEnv.releasePrivateKeyFromUser(bob);
71+
6972
// Expected output:
7073
// {
7174
// claims: {},

local-tests/tests/testUseCapacityDelegationAuthSigWithUnspecifiedDelegateesToPkpSign.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export const testUseCapacityDelegationAuthSigWithUnspecifiedDelegateesToPkpSign
5656
sessionSigs: bobsSessionSigs,
5757
});
5858

59+
devEnv.releasePrivateKeyFromUser(alice);
60+
devEnv.releasePrivateKeyFromUser(bob);
61+
5962
// -- Expected output:
6063
// {
6164
// r: "36bd0039b4e4d1dae488a63437318790df86b8023ac4ffa842c8983245b7f629",

0 commit comments

Comments
 (0)