hackquest logo

Fangorn Founders House

Fangorn is a programmable data layer for the agentic web. In this demonstration it is used to facilitate private computations via fully homomorphic encryption behind the x402 payment required protocol

Videos

Tech Stack

Web3
Node
Solidity

Description

Fangorn is programmable access control infrastructure for agents and humans. It lets you encrypt data under a condition instead of a private key. Our ethos is 'proof over permission', meaning:

  • no key management

  • extensible & composable conditions

  • non-interactive and asynchronous between data publisher and consumer

Progress During Hackathon

For this hackathon, we extended our previous work and delivered something entirely brand new: FHE computations over encrypted data gated behind a payment condition, facilitator via x402. That is, it's 'pay-per-insight' over encrypted data.

This extends our previous work, where we provided mechanisms to gate full-plaintext access using payments and other conditions. In this model, data discoverability is accomplished using a combination of a custom 'data source registry' contract and the ERC-8004 registries, where each datasource has an agent card that can be used to find and query the data. While this functions as intended for large data sets, it provides no safe means to let an agent infer intelligence without exposing the entire dataset to the agent. With our latest work, agents can execute functions over private data while:

  • not exposing its own private query parameters (e.g. 'How many people have blood type 'A' in the data set?')

  • preserving the privacy of the data publisher

The market for this is any domain where data is sensitive but aggregate insight is valuable: healthcare, finance, identity, ML training, and advertising.

- We replaced our entire encryption implementation with FHEnix/TFHE, removing the hybrid Lit/AES encryption used previously

- modified the fangorn-cli to encrypt data under a specific schema for the sake of the demo - meaning blood types are the only types of data it supports currently (represented by integers 0-7).

- implemented e2e tests to verify that entryptions, executions, and unsealing using the contract works

- We refactored our x402f implementation (fetch + server + facilitator) to be able to handle:

- encrypting values with FHE, serializing them, and passing it along to the facilitator as part of a request body

- execution and unsealing of a computation given that a specific USDC payment has been settled on-chain

- implemented e2e example to verify functionality

- We developed and deployed a FHEnix contract to compute over private blood type data, represented as integers, where BLOOD_TYPES = ["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-"]

- We deployed the latest version of fangorn to npm: https://www.npmjs.com/package/fangorn-fhe-sdk

- deployed to cloudrun

- it all works

- We learned the FHEnix stack inside and out

Contracts

contract name

address

type

Datasource Registry Contract

0x602aedafe1096004d4db591b6537bc39d7ac71a6

stylus

Settlement Tracker Contract

0x7c6ae9eb3398234eb69b2f3acfae69065505ff69

stylus

Patient Evaluator Contract (FHE)

0x1E92cF014b7a078482641136243574172d1D04eA

sol

Deployed Services

service

url

Facilitator

https://facilitator-133282782456.us-central1.run.app

Server

https://server-133282782456.us-central1.run.app

Note: A more refined version of the Patient Evaluator Contract is deployed to this address - 0xA682FED2c3f0115A643a7D63E6DD36107C6c6bD1

For context we found out we were accepted to this event one week ago, found out where the event was being held on Tuesday (03/03/2026), found out it was a different hackathon (we thought it was a pitching competition for mature projects looking to understand GTM as well as direct exposure to investors) on Thursday (03/05/2026) evening (9pm) after a full day of travelling, spent all of our time on Friday figuring what to build, built everything on Saturday (03/06/2026) (this includes learning the entire architecture of FHEnix (pitch incoming regarding their threshold encryption architecture :D), completely gutted our codebase to properly fit the FHENix control flow, delivered by Sunday (03/07/2026). A much more refined submission for a project that is more in-line with our broader product framing is from our Arbitrum Open House submission here: https://www.hackquest.io/projects/Fangorn

Fundraising Status

No funds raised

Team Leader
CColeman
Project Link
Deploy Ecosystem
ArbitrumArbitrum
Sector
DeFiInfraAI