From d4bad5b01cef112706933e5aedd4d4cad83ba47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Wed, 26 Jun 2024 21:06:55 +0200 Subject: [PATCH] fix: fix bin return --- bin/fhevm.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/fhevm.js b/bin/fhevm.js index c6cf803..a2dc803 100755 --- a/bin/fhevm.js +++ b/bin/fhevm.js @@ -38,7 +38,14 @@ program encryptedInput[`add${suffix}`](parseInt(values[i], 10)); }); const result = await encryptedInput.encrypt(); - console.log(`0x${toHexString(result)}`); + + console.log('Input proof:'); + console.log(`0x${toHexString(result.inputProof)}`); + console.log('Handles:'); + result.handles.forEach((handle, i) => { + console.log(`Handle ${i}`); + console.log(`0x${toHexString(handle)}`); + }); }) .requiredOption('-n, --node ', 'url of the blockchain');