To use Blocky AS, you will need to install the Blocky AS CLI for interacting with our TEE servers, the Blocky Compiler for compiling your functions down to WebAssembly (WASM), and several utility tools for parsing attestations and running tests.
Install the Blocky AS CLI,
bky-as, by running:curl -s https://raw.githubusercontent.com/blocky/attestation-service-cli/refs/tags/v0.1.0-beta.13/install.sh | bashAlthough you can run
bky-asfrom the current directory, we recommend you move it into your$PATH, so that you can run it from any directory, including the directories used in our examples throughout the documentation. You can putbky-asin/usr/local/binby running:sudo mv bky-as /usr/local/binThe
bky-asinstall script also downloads a configuration file,config.toml. The default configuration hasbky-asstart a local server that executes functions and generates (non-TEE) attestations. Leave this as-is for now. At the end of the Getting Started guide, we will show you how to configurebky-asto run your functions on genuine TEEs.In the meantime, we recommend moving
config.tomlto a well-known location. Thebky-ascommand will look forconfig.tomlin the current directory,./configs,$HOME/.config/bky/bky-asor the location specified by the--configflag.You can move
config.tomlto$HOME/.config/bky/bky-asby running:mkdir -p $HOME/.config/bky/bky-as mv config.toml $HOME/.config/bky/bky-as/Install the Blocky Compiler,
bky-c, by running:curl -s https://raw.githubusercontent.com/blocky/compiler/refs/heads/main/install.sh | bash -s -- -v v0.1.0-beta.2Although you can run
bky-cfrom the current directory, we recommend you move it into your$PATH, so that you can run it from any directory, including the directories used in our examples throughout the documentation. You can putbky-cin/usr/local/binby running:sudo mv bky-c /usr/local/binIf you don't have it already on your system, install jq to parse JSON data.
If you don't have it already on your system, install yq to parse TOML data.
(Optional) If you wish to bring attestation data on chain, install npm to run smart contract tests.
You are now ready to write, build, and deploy functions on Blocky AS! Continue on to the next section where we demonstrate how to compile functions with the Blocky Compiler tool.