See original one wallet instructions https://github.com/polymorpher/one-wallet
This is a proof of concept adding SMS + Apple watch based authentication. I make use of Google Cloud Functions, Firestore. I also use 3rd party APIs like Twilio. If you want to try the SMS, you'll need to send it to https://smsreceivefree.com/info/12498011843/ As it is a free twilio account, so the phone number needs to be registered before SMS can be sent.
In this project you'll see how to make use of Google Cloud, SMS sending services. It also demonstrates how to add code to the 1wallet code base, updating the UI.
Clone hyde-one-wallet, set up environment
We assume you are on macOS or Linux. Windows is not supported as a development environment at this time.
First, you need to install all essential dependencies and apply a patch to one of the dependencies. To do this, simply run the following at the root directory of this project:
Run to start a local web and load a wallet in the browser
Next, try starting a local web client:
cd code/client yarn run dev
Create a wallet, click “Use your apple watch to confirm transactions”
Enter phone number and click “Send SMS code”
Receive SMS code, register device
Scan Google Authenticator and enter access code
Confirm: Create Now
To run Apple watch locally, follow steps
$ export HWDEV=dev $ functions_framework - - source watch.py - -target main - - port:8084
- Enter the code shown on the screen
Create Functions on Google Cloud Platform
Configuration Cloud functions > create function > add environment variables
Code: copy and paste your code. Click DEPLOY