Skip to content

Conversation

@l0gun0v
Copy link

@l0gun0v l0gun0v commented Dec 15, 2025

Description and Related Issue(s)

This PR adds support for displaying Fully Homomorphic Encryption (FHE) operations in transaction details. The feature integrates with the backend API to fetch and display FHE operations associated with transactions, providing users with visibility into encrypted computation operations on the blockchain.

This frontend implementation complements the backend work for FHE operations support (see related PR: blockscout/blockscout#13742). The backend API endpoint /api/v2/transactions/:hash/fhe-operations must be available for this frontend feature to function.

Proposed Changes

FHE Operations Feature:

  • Added new API resource endpoint tx_fhe_operations that fetches FHE operations for a specific transaction via /api/v2/transactions/:hash/fhe-operations
  • Extended the Transaction type to include an optional fhe_operations_count field to track the number of FHE operations in a transaction
  • Integrated TxFHEOperations component into the transaction page with conditional rendering - the "FHE Operations" tab only appears when fhe_operations_count > 0
  • Added TypeScript type definitions for FheOperationsResponse to ensure type safety
  • Cleaned up unnecessary comments in the TxFHEOperations component

Breaking or Incompatible Changes

No breaking changes - This PR is fully backward compatible:

  • The fhe_operations_count field is optional in the Transaction type, so existing code will continue to work
  • The FHE Operations tab only appears conditionally when operations are present, so it won't affect transactions without FHE operations

Checklist for PR author

  • I have tested these changes locally.

  • I added tests to cover any new functionality, following this guide

  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.

  • If I have added, changed, renamed, or removed an environment variable

    • I updated the list of environment variables in the documentation

    • I made the necessary changes to the validator script according to the guide

    • I added "ENVs" label to this pull request

@l0gun0v l0gun0v changed the title FHE operations and tags feat: FHE operations and tags Dec 15, 2025
@tom2drum tom2drum added the triage Issues and PRs that are needed triage label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Issues and PRs that are needed triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants