Phala Network co-hosted a hackathon for the Encode Club on June 10th - 12th in Austin, TX at The University of Texas at Austin. Prizes were marketed as 1st Place - $2.5k, 2nd Place - $1.5k & 3rd Place - $1k. We had 3 entries into the hackathon, but one project was disqualified due to not utilizing Fat Contracts in their solution. This leads to an allocation at the current market price of 1 PHA per $0.1069 USD at $4k USD to be 37418.147801684 PHA for the 1st and 2nd place winners.
1st place went to Gavin Whelan
Technical prototype of image processing on a Phala fat contract. The contract securely receives image data off chain and processes it within the Secure Enclave looking for specific features. This model allows the contract to avoid expensive on-chain actions while still having a trusted pathway of recording critical data of the interaction onto the chain for record keeping and chain visibility.
The prototype serves to proof the structure and implementation cost of building more complex systems such as trusted off-chain facial recognition for authentication to services (on or off-chain) with indelible audit logging.
Rust image processing libraries had to be modified to run on the more restrictive Ink! environment, providing an example of the changes that would be required for other libraries.
For testing purposes a simple front-end was also built based on the Phala JS-SDK example that allows selecting and sending local images to the fat contract for processing.
2nd Place Winner Aidan Dunlap
A Fat Contract in Rust that interacts with the National Weather Service and gets the current temperature for me. This could be used in the future to create a special decentralized oracle for something like a weather prediction market or futures exchange. The trustless nature of such an oracle comes from the contract itself being able to get real-world data from a trusted third-party source (the US government), without a human running a server that's sending numbers on-chain. I think this is a really neat application of the unique ability of Fat Contracts to interact with the real world/web services.
SubSquare recently hosted a hackathon event where participants had to create projects using Phala Network's Fat Contracts. The winners of the event were Gavin Whelan and Aidan Dunlap. Gavin's project was an image processing prototype that securely processes image data off-chain, while Aidan's project was a Fat Contract that interacts with the National Weather Service to get the current temperature. Gavin's project could be used for trusted off-chain facial recognition and Aidan's project could be used to create decentralized oracles for weather prediction markets or futures exchanges.