Skip to content

Commit 691f849

Browse files
committed
remove rename
1 parent be837bc commit 691f849

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/seal/src/bcs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ export const KeyServerMoveV1 = bcs.struct('KeyServerV1', {
5555
* The Move struct for PartialKeyServer.
5656
*/
5757
export const PartialKeyServer = bcs.struct('PartialKeyServer', {
58-
partialPk: bcs.byteVector(),
58+
name: bcs.string(),
5959
url: bcs.string(),
60+
partialPk: bcs.byteVector(),
6061
partyId: bcs.u16(),
6162
});
6263

packages/seal/src/decrypt.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export async function decrypt({
5353
const inKeystore = encryptedObject.services
5454
.map((_, i) => i)
5555
.filter((i) => keys.has(`${fullId}:${encryptedObject.services[i][0]}`));
56-
5756
if (inKeystore.length < encryptedObject.threshold) {
5857
throw new Error('Not enough shares. Please fetch more keys.');
5958
}

packages/seal/test/unit/aggregator.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ describe('Committee Aggregator Tests', () => {
2626
it('encrypt and decrypt through aggregator', { timeout: 12000 }, async () => {
2727
// Committee key server configuration
2828
const COMMITTEE_KEY_SERVER_OBJ_ID =
29-
'0x0c9b2a1185f42bebdc16baf0a393ec5bd93bab8b0cb902b694198077b27c15da';
29+
'0xc884188367e7e8f9b70b7bf5f4b2449bab19999ad70e618b5fd80da54084a43f';
3030
const INDEPENDENT_SERVER_OBJ_ID =
3131
'0x71a3962c5d06a94d1ef5a9c0e7d63ad72cefb48acc93001eaa7ba13fab52786e';
3232
// also works with 0x81aeaa8c25d2c912e1dc23b4372305b7a602c4ec4cc3e510963bc635e500aa37
33-
const AGGREGATOR_URL = 'http://localhost:2027';
33+
const AGGREGATOR_URL = 'https://seal-aggregator-ci.mystenlabs.com';
3434
const PACKAGE_ID = '0x58dce5d91278bceb65d44666ffa225ab397fc3ae9d8398c8c779c5530bd978c2'; // Testnet package with account_based policy
3535

3636
const testKeypair = Ed25519Keypair.generate();
@@ -58,7 +58,7 @@ describe('Committee Aggregator Tests', () => {
5858

5959
// Encrypt with policy and 2 servers (1 for committee, 1 for independent)
6060
const { encryptedObject: encryptedBytes } = await client.encrypt({
61-
threshold: 1,
61+
threshold: 2,
6262
packageId: PACKAGE_ID,
6363
id: testAddress,
6464
data: testData,

0 commit comments

Comments
 (0)