Getting Started
Let’s get started with Charms! This guide will walk you through building your Charms app in a few minutes.
Make sure you have nightly Rust installed:
Installation
Install Charms CLI:
Create an app
This will print out the verification key (VK) for your new app, that looks something like:
You will need the VK to use in your spells.
Keep in mind, that the VK will change as you edit your app, so don’t forget to run charms app vk
: it will build your app and generate new VK.
When you’re done implementing the app, it can be run against a spell:
The above is supposed to work almost out of the box (provided you replaced the VK with the one produced for your app).
Now that we know that the app contract is correct (to the best of our knowledge), we can go ahead and enchant a real Bitcoin transaction.