From 23392587c48c4e54b8db7bc54490af98eb7893bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Nov=C3=A1k?= Date: Mon, 2 Dec 2024 15:08:56 +0100 Subject: [PATCH] release: 1.23.4 (333) --- apps/mobile/app.config.ts | 2 +- .../src/offers/createOfferHandleContacts.ts | 1 + .../src/offers/utils/offerPrivatePayload.ts | 7 ++++++- .../offers/utils/sendOfferToNetworkBatchPrivateParts.ts | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/mobile/app.config.ts b/apps/mobile/app.config.ts index 77d3ef74c..cc5daf21e 100644 --- a/apps/mobile/app.config.ts +++ b/apps/mobile/app.config.ts @@ -1,6 +1,6 @@ // import {SemverString} from '@vexl-next/domain/src/utility/SmeverString.brand' -const VERSION_CODE = 332 +const VERSION_CODE = 333 const VERSION = '1.23.4' const ENV_PRESET = process.env.ENV_PRESET const COMMIT_HASH = process.env.EAS_BUILD_GIT_COMMIT_HASH ?? 'local' diff --git a/packages/resources-utils/src/offers/createOfferHandleContacts.ts b/packages/resources-utils/src/offers/createOfferHandleContacts.ts index 761eab10d..fdc8b77e4 100644 --- a/packages/resources-utils/src/offers/createOfferHandleContacts.ts +++ b/packages/resources-utils/src/offers/createOfferHandleContacts.ts @@ -78,6 +78,7 @@ export default function createNewOfferForMyContacts({ TE.bindW('symmetricKey', () => TE.fromEither(generateSymmetricKey())), TE.bindW('encryptedPublic', ({symmetricKey}) => { if (onProgress) onProgress({type: 'CONSTRUCTING_PUBLIC_PAYLOAD'}) + console.log('Encrypting public payload') return encryptOfferPublicPayload({ offerPublicPart: publicPart, symmetricKey, diff --git a/packages/resources-utils/src/offers/utils/offerPrivatePayload.ts b/packages/resources-utils/src/offers/utils/offerPrivatePayload.ts index e226a6e76..d1c8a710a 100644 --- a/packages/resources-utils/src/offers/utils/offerPrivatePayload.ts +++ b/packages/resources-utils/src/offers/utils/offerPrivatePayload.ts @@ -91,7 +91,12 @@ export function fetchInfoAndGeneratePrivatePayloads({ }) return v }), - TE.chainW(() => encryptPrivatePart(one)) + TE.chainW(() => { + console.log( + `Encrypting private part to ${i}: ${one.toPublicKey}, ${JSON.stringify(one, null, 2)}` + ) + return encryptPrivatePart(one) + }) ) ), NEA.sequence(T.ApplicativeSeq), diff --git a/packages/resources-utils/src/offers/utils/sendOfferToNetworkBatchPrivateParts.ts b/packages/resources-utils/src/offers/utils/sendOfferToNetworkBatchPrivateParts.ts index d749a3620..de7e6b754 100644 --- a/packages/resources-utils/src/offers/utils/sendOfferToNetworkBatchPrivateParts.ts +++ b/packages/resources-utils/src/offers/utils/sendOfferToNetworkBatchPrivateParts.ts @@ -25,6 +25,7 @@ export const sendOfferToNetworkBatchPrivateParts = ({ } }): ReturnType => Effect.gen(function* (_) { + console.log('Sending offers to network') const privatePartsBatches = Array.chunksOf( offerData.offerPrivateList, PRIVATE_PARTS_BATCH_SIZE