Cool use case — confidential payroll is exactly where FHEVM shines
Batch scaling (>15)
If you mean contract-level scaling: minimize the number of FHE operations per call. Chunk based on total FHE op count, not just recipient count. Reduce redundant checks and keep each transaction’s FHE “weight” predictable.
Porto-compatible decrypt signatures
Smart account signing for user decryption isn’t supported yet. For now, you’ll need an EOA-based EIP-712 signature flow. Smart account support is planned.
Indexer / audit pattern
Zaiffer team inside Zama building the portfolio dapp, has built a custom indexer instead of using The Graph, quoting our engineer:
In Zaiffer we didn’t rely on an external indexer (like The Graph or something similar).
We built a dedicated indexing process that continuously reads Ethereum blocks, parses transactions, and maintains a local database of only the events relevant to us (those “ERC-7984-related”).
The approach was:
Monitor every new block on the eth blockchain
Filter for relevant contract addresses and event signatures
Persist structured data locally for reconciliation and business logic
That gives a fine control over how events are interpreted and linked to off-chain processes.
In short:
Recommended indexer → unfortunately I don’t have a specific recommendation, as I didn’t experiment with third-party indexers in this context.
Event pattern → emit structured events, then monitor, filter and store them locally for internal reconciliation and audit purposes.