Skip to content

Conversation

@isaacdecoded
Copy link
Contributor

@isaacdecoded isaacdecoded commented Dec 19, 2025

REQUISITES:

DEPLOYMENT STEPS:

  • Deploy minio

    docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/minio-docker-compose.yml" up -d
    
  • Deploy KMS core

    CORE_VERSION="v0.12.4" docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/core-docker-compose.yml" up -d
    
  • Setup KMS signer address

    test-suite/fhevm/scripts/setup-kms-signer-address.sh
    
    • Take note of the KMS signer address from the script output, and replace KMS_SIGNER_ADDRESS_0 in host-contracts/.env.polygonAmoy
    • Also in host-contracts/.env.polygonAmoy configure:
      • MNEMONIC
      • DEPLOYER_PRIVATE_KEY
      • RPC_URL
  • Deploy all host contracts

    (cd host-contracts && DOTENV_CONFIG_PATH=.env.polygonAmoy npx hardhat --network polygonAmoy task:deployAllHostContracts)
    
    • And put their addresses in:
      • test-suite/fhevm/env/staging/.env.coprocessor
        • Also replace the RPC_WS_URL to point to a valid websocket polygon amoy endpoint, e.g. Alchemy
      • test-suite/fhevm/env/staging/.env.test-suite
        • Also replace the RPC_URL and MNEMONIC
      • test-suite/fhevm/env/staging/.env.gateway-sc
      • test-suite/e2e/contracts/E2ECoprocessorConfigLocal.sol
  • Deploy database

    docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/database-docker-compose.yml" up -d
    
  • Deploy Gateway node

    docker compose -p "fhevm" --env-file "test-suite/fhevm/env/staging/.env.gateway-node" -f "test-suite/fhevm/docker-compose/gateway-node-docker-compose.yml" up -d
    
  • Deploy Coprocessor services

    DB_MIGRATION_VERSION=v0.10.2 \
        GW_LISTENER_VERSION=v0.10.2 \
        HOST_LISTENER_VERSION=v0.10.2 \
        TX_SENDER_VERSION=v0.10.2 \
        TFHE_WORKER_VERSION=v0.10.2 \
        SNS_WORKER_VERSION=v0.10.2 \
        ZKPROOF_WORKER_VERSION=v0.10.2 docker compose -p "fhevm" --env-file "test-suite/fhevm/env/staging/.env.coprocessor" -f "test-suite/fhevm/docker-compose/coprocessor-docker-compose.yml" up -d
    
  • Deploy KMS connector services

    CONNECTOR_DB_MIGRATION_VERSION=v0.10.2 \
        CONNECTOR_GW_LISTENER_VERSION=v0.10.2 \
        CONNECTOR_KMS_WORKER_VERSION=v0.10.2 \
        CONNECTOR_TX_SENDER_VERSION=v0.10.2 docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/kms-connector-docker-compose.yml" up -d
    
  • Deploy Gateway mocked payment

    GATEWAY_VERSION=v0.10.2 docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/gateway-mocked-payment-docker-compose.yml" up -d
    
  • Deploy Gateway contracts

    GATEWAY_VERSION=v0.10.2 docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/gateway-sc-docker-compose.yml" up -d
    
  • Deploy Relayer services

    RELAYER_VERSION=v0.6.0 docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/relayer-docker-compose.yml" up -d
    
  • Deploy it test suite

    docker compose -p "fhevm" -f "test-suite/fhevm/docker-compose/test-suite-docker-compose.yml" up -d --build
    
  • Execute tests:

    ./test-suite/fhevm/fhevm-cli test input-proof
    ./test-suite/fhevm/fhevm-cli test input-proof-compute-decrypt
    ./test-suite/fhevm/fhevm-cli test user-decryption
    ./test-suite/fhevm/fhevm-cli test public-decrypt-http-mixed
    ./test-suite/fhevm/fhevm-cli test public-decrypt-http-ebool
    

---- SUCCESSFUL TEST TRACES ----

        cast calldata-decode \
            "requestUint64NonTrivial(bytes32 inputHandle, bytes calldata inputProof)" \
            0xd258d8877d3114f0d4b874f6602810d306f42262d5ed5a2a5e00000000000001388205000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006401017d3114f0d4b874f6602810d306f42262d5ed5a2a5e000000000000013882050051ed294ad51e9b1d616d575eab80749f71816c61e02e9596d7fa8716f8dd08bd49e8018dbfc2e3826f0447df932a3da81ccf38eea31a85647f816883089e2db31c0000000000000000000000000000000000000000000000000000000000
        cast calldata-decode \
            "add42ToInput64(bytes32 inputHandle, bytes calldata inputProof)" \
            0x54cef950b5a21e3410d96240d7bc889fe242b16be01adcc87b0000000000000138820500000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000640101b5a21e3410d96240d7bc889fe242b16be01adcc87b0000000000000138820500b85350213753de6baecc0051219777960e93d9b93b0b32e6c82f2812b7157fd60d390abc114e5458f82a164828bb10b019bdac3731904aeff18bfa3bd3404a1f1b0000000000000000000000000000000000000000000000000000000000

@cla-bot cla-bot bot added the cla-signed label Dec 19, 2025
@mergify
Copy link

mergify bot commented Dec 19, 2025

🧪 CI Insights

Here's what we observed from your CI run for ff65f06.

🟢 All jobs passed!

But CI Insights is watching 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants