Applications Using Web3E
Samples showing real world use cases of Web3E
NB: All samples use Platformio IDE
Runs a DApp Server on an embedded device running Arduino framework.
- When a user connects to the server, the microcontroller produces a random challenge string embedded in the webpage/DApp that is served.
- The DApp uses the signature and the challenge it sent to perform an EC-recover.
- The address calculated from the EC-recover is first compared with the address sent to check they match. If they match, we know the user owns the private key for that address.
- The address is checked to see if it holds an ERC875 AlphaWallet office entry attestation token. If the address does, then the microcontroller begins the sequence to open the door.
- Opening the door is a series of three button presses to simulate opening the intercom (usually the check the identity of the person asking for access), with intercom open the door open command is sent, then the intercom closed. Some electromechanical relays controlled from the device and wired up to the switches perform these actions.
- Install Platformio
- Clone this repo and open in Platformio.
- Set up your WiFi credentials in main.cpp
- Get AlphaWallet
- Get some testnet Eth. Visit this site on the AlphaWallet DApp browser.
- Mint some ERC875 tokens. Visit here on your DApp browser.
- Take a note of the contract address. Copy/paste contract address into the source code inside the 'STORMBIRD_CONTRACT' define.
- Build and deploy the sample to your Arduino framework device. We used this one.
- Use the transfer or MagicLink on AlphaWallet to give out the tokens.
If you support the cause, we could certainly use donations to help fund development: