Hey Zama team, while creating an instance. from where can I get the fhe lib address on other networks ?
const initInstance = async () => {
// 1. Get chain id
const chainIdHex = await window.ethereum.request({ method: "eth_chainId" });
const chainId = parseInt(chainIdHex, 16);
// Get blockchain public key
const ret = await provider.call({
// fhe lib address, may need to be changed depending on network
to: "0x000000000000000000000000000000000000005d",
// first four bytes of keccak256('fhePubKey(bytes1)') + 1 byte for library
data: "0xd9d47bb001",
});
const decoded = ethers.AbiCoder.defaultAbiCoder().decode(["bytes"], ret);
const publicKey = decoded[0];
// Create instance
return createInstance({ chainId, publicKey, keypairs });
};