zkFP Inference
zkFP inference represents running inference on an AI or ML model in Vanna's decentralized filestore in an optimistic fashion with no proof directly generated to secure inference. However, the staking contract allows for the inference consumer to post a stake and submit a challenge to the inference within a challenge period. If challenged, the node that ran the inference generates a ZK-SNARK that acts as a fraud proof and will be validated by the nodes on the Vanna Network. On successful challenges, the inference node is slashed; on unsuccessful challenges, the challenger's stake is lost. The proof will be available on the data availability layer, which can be queried through our inference transaction explorer.
In order to run zkFP inference, you need to implement the ArbInference interface for inferCallZK.
model - The IPFS CID for the model
input - The input parameters to the inference request
Below is an example of a minimal smart contract that runs zkFP inference:
Last updated