Run the following command to build the docker image with your custom function
make
You should see a measurement.txt
in the root of the project containing the
base64 encoding of the MRENCLAVE measurement. You will need to re-generate this
measurement anytime your source code or dependencies change.
make publish
To get started, you will first need to:
- Build your docker image and upload to a Docker/IPFS repository
- Generate your MRENCLAVE measurement
Next, you will need to create a Function account for your given MRENCLAVE measurement. Head over to app.switchboard.xyz and create a new function with your given repository and MRENCLAVE measurement.
See docs.switchboard.xyz to get started.