Skip to content
Last updated

Overview

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 & Setup

  1. 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 | bash
  2. Although you can run bky-as from 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 put bky-as in /usr/local/bin by running:

     sudo mv bky-as /usr/local/bin
  3. The bky-as install script also downloads a configuration file, config.toml. The default configuration has bky-as start 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 configure bky-as to run your functions on genuine TEEs.

    In the meantime, we recommend moving config.toml to a well-known location. The bky-as command will look for config.toml in the current directory, ./configs, $HOME/.config/bky/bky-as or the location specified by the --config flag.

    You can move config.toml to $HOME/.config/bky/bky-as by running:

    mkdir -p $HOME/.config/bky/bky-as
    mv config.toml $HOME/.config/bky/bky-as/
  4. 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.2
  5. Although you can run bky-c from 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 put bky-c in /usr/local/bin by running:

    sudo mv bky-c /usr/local/bin
  6. If you don't have it already on your system, install jq to parse JSON data.

  7. If you don't have it already on your system, install yq to parse TOML data.

  8. (Optional) If you wish to bring attestation data on chain, install npm to run smart contract tests.

Next Steps

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.