As a leader in Polkadot’s ecological privacy sector, Phala’s confidential smart contract has never been an ideal product. Since the decision to use the Substrate framework in 2019, Phala has been actively contacting Polkadot ecological developers to better improve our developer documentation and developer experience.
In October of this year, we held a mini hackathon “Hello World!” on Gitcoin with the Polkadot team and several other star projects . As one of the sponsors of the ecological construction of this event, Phala has set up two levels of challenge, the initial and advanced levels, and in just one month, we received 60+ developer submissions (that is, 60 people successfully Deployed Phala smart contracts), and 7 of them directly used Phala smart contracts to develop advanced “blockchain + confidentiality” products. We have sorted out their whimsical ideas, hoping to inspire all Substrate developers.
Hello World! Phala task submission page: https://gitcoin.co/issue/Phala-Network/hello-world-by-polkadot/2/100023947
1. Personal privacy notes by Laurent
GitHub repo: https://github.com/LaurentTrk/apps-ng/tree/helloworld
Are you worried that the prevailing cloud notes will leak your deepest secrets?
Whether it is Apple’s sticky notes, graphite documents, or Evernote, your data will be uploaded to the cloud for personal storage. This type of service is not only convenient for us to use, but also brings hidden worries: What if their server is leaked or data is artificially transferred after many years? Your secret is likely to be made public!
Fortunately we have Phala Network, you can create a cloud note that will never be leaked:
Laurent was the first participant to submit a product, and he developed a confidential note that only he can see. His practice has shown us that now, residents of the Web3 world can also “lock” their online notes. Another developer also submitted a confidential memo app called “AideMemorie”, perhaps this will become a popular usage of Phala contract. 😛
2.IPFS privacy cloud disk by master-davidlee
Are you worried that the photos and business documents stored in the cloud disk will be exposed?
From Edison Chen to the current color website, you only need to search for the leaked XX network disk, and you can see countless of the most private photos that have been published on the Internet. The scary thing about the Internet is that once data is made public, it can never be erased.
Fortunately we have Phala Network, you can create a cloud network disk that will never leak:
GitHub repo: https://github.com/master-davidlee/hello-world-by-polkadot/blob/main/my_first_confidential_contract/README.md
master-davidlee ingeniously combined IPFS and Phala to complete a “privacy cloud disk” based on IPFS. Users can upload files to IPFS, but only users can access them.
After the Phala team conducted a qian check (fu) in communities such as Huawei Cloud, Tencent Cloud, and Alibaba Cloud, there is currently no such “blockchain + private anti-censorship” privacy cloud product on the market. It may become a good starting point for entrepreneurship in the future.
3.Privacy Base64 code by shamb0
Want to convert binary data into text data, but don’t want to be too easy to be cracked?
Base64 is one of the most common encoding methods used to transmit 8Bit byte codes on the Internet, and represents binary data based on 64 printable characters. shamb0 used the Phala confidential smart contract as an encryption method and created a ciphertext version of Base64 code.
Another developer, vinhbhn, also submitted a similar product. According to this idea, Phala smart contracts may be able to “encrypt” more types of codes.
4. Account password manager by sekmet
GitHub repo: https://github.com/sekmet/Hello-World-by-Polkadot/tree/main/ecosystem/contract-phala-network
This is really a great use case. Whether in personal life or teamwork, we have to record a large number of account passwords. What is worrying is that data stored on centralized servers is always at risk of being leaked, and for companies, such accidents may be fatal.
sekmet used Phala to make himself an account and password manager. In this manager, you can safely store all account passwords without worrying about it being leaked. If someone wants to get your account password, they must break into Phala’s TEE network, which means attacking the TEE miner nodes and gatekeeper nodes scattered all over the world at the same time, and it is a one-time success. 🙂
5. Encryption calculator by tarzan18
tarazna18 made a somewhat niche use case: privacy calculator. In this calculator, you can enter any two values and it will be automatically multiplied.
Demo display video: https://www.youtube.com/watch?v=q88JZ1tc6GY&feature=youtu.be
6. Tuna Ledger by ubinix-warun
ubinix-warun has created an crypto account book to record some transfer records. The ledger will automatically record the time and location of the transfer. The data recorded by PhalaNetwork is only visible to you. In the future, it may be an excellent tool to save hidden consumption that you don’t want to be seen by anyone. 🙂
7. Confidential GPS data collection website by shirshak55
GitHub repo: https://gist.github.com/shirshak55/bac4df4e5c0f6c793f1633ec7f01be44
Shirshak is a senior Substrate developer and has participated in many Polkadot-related challenges on Gitcoin. He believes that GPS navigation data records our daily whereabouts and is very sensitive data. With the help of Phala confidential smart contract, the separation of data call and storage can be realized, so that only the user can view it, and no third party can call it at will.
It took me about 20 hours to complete the development of this DApp, and I encountered some /bin and /app related errors. Rust is quite troublesome to compile and spends a lot of time on debugging. The Phala team’s documentation is well written and organized, and the code quality is also high. But hope to reduce tree files and log files. —— shirshak55
About Phala
Phala Network is a privacy computing parachain on Polkadot. Based on a POW-like economic incentive model, Phala will build a distributed privacy computing cloud composed of hundreds of thousands of miners around the world, which will then serve as a Polkadot parachain and radiate all blockchains. Ecological Defi, data services and other applications. Phala-based applications pLibra and Web3 Analytics have been granted a grant from the web3 foundation. In March 2020, Phala became one of the first projects to join the Substrate Builders Program.