Skip to content

Commit

Permalink
fix: fix checksum for encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Dec 5, 2024
1 parent fcfddbb commit 7b085bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdk/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isAddress } from 'ethers';
import { getAddress, isAddress } from 'ethers';
import createKeccakHash from 'keccak';
import {
TfheCompactPublicKey,
Expand Down Expand Up @@ -272,8 +272,8 @@ export const createEncryptedInput =
const closestPP = this._getClosestPP();
const ppId = publicParams[closestPP]!.publicParamsId;
const payload = {
contract_address: contractAddress,
caller_address: callerAddress,
contract_address: getAddress(contractAddress),
caller_address: getAddress(callerAddress),
ct_proof: ciphertext.toString('hex'),
key_id: publicKeyId,
crs_id: ppId,
Expand Down

0 comments on commit 7b085bc

Please sign in to comment.