SatLayer
Restake now
  • 🟨Overview
    • Introduction to SatLayer
  • SatLayer on Babylon
  • 🏛️Architecture
    • SatLayer Overview
  • Roadmap
  • Protocol Rewards
  • Slashing
  • SatLayer Contracts
  • 🔓Security
    • Audits
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Contracts
      • Staking App
      • SatLayer Core
      • Cube by SatLayer
    • Bug Bounty
  • 🪙Restakers
    • How to Restake
    • Sats² Staker Rewards
      • Earning Sats²
      • Monthly Sats² Sprints
      • Referral Guide
      • Sats² FAQs
      • Current Campaigns
        • 5 Million Sats² OKX Wallet Giveaway Rewards
        • The Order of the Sats
      • Past Campaigns
        • OKX Cryptopedia
        • Journey to the Sats
        • The Great BTC Meme War
  • Partner Rewards
    • Babylon
    • Bedrock
    • Tower Finance
  • 🎛️Operators
    • Overview
    • 👉Apply as Operator
  • BVS Developers
    • Introduction
  • 👉Apply as Developer
  • SatLayer Testnet
    • Operator Onboarding
    • BVS Onboarding
  • 🧊Cube by SatLayer
    • Introduction
    • Understanding the LST
    • How to Stake
      • Cube and cBABY FAQ
  • 🧰Resources
    • Website
    • Discord
    • Twitter
    • GitHub
    • SatLayer Brand Guidelines
Powered by GitBook
On this page

Was this helpful?

  1. BVS Developers

Hello World BVS

Last updated 6 months ago

Was this helpful?

SatLayer provides a application for developers to get comfortable with our Platform and SDKs. The components of this application are not required by any means, they serve as a simple example. You are free to design your BVS to function and operate how you like.

This HelloWorld BVS is a straightforward example of a number-squaring BVS. While it demonstrates one type of arbitrary computation, it doesn't have to be limited to squaring numbers. The framework can accommodate various kinds of off-chain logic, and the final results can be trusted due to on-chain validation and the inherent asset risk management.

To be explicit, the specific components of the Hello World example include:

These components work together to demonstrate how a basic BVS can function while maintaining security and trust in the results produced.

Example of a BVS Task Flow

  1. The Task Caller submits a number to the BVS on-chain contract.

  2. This number is stored in the State Bank, and a new task is created in the BVS Driver within the SatLayer Core Contracts.

  3. Off-chain operators who are listening for on-chain changes download the task and its associated state.

  4. Each operator running the off-chain software squares the number and submits their result to a trusted aggregator.

  5. The trusted aggregator receives results from multiple operators and determines the final number to submit based on a quorum of submissions.

  6. The submission can be validated by the on-chain contract before it is recorded as a task result.

  7. Results from the operators are visible, allowing for monitoring and verification.

  8. If incorrect results are detected, a slashing request with evidence can be submitted to the Slash Manager to penalize any malicious operators.

This flow demonstrates how the BVS framework ensures reliable computations while maintaining accountability and security within the system.

Off-Chain : This component submits new tasks to the BVS's on-chain contract.

Trusted : A centralized, trusted entity that aggregates BLS signatures and results before submitting them on-chain.

: The off-chain operator software that runs on multiple operators to perform the squaring computation.

: This component uploads rewards to be distributed to operators participating in the BVS.

: The on-chain contract that interacts with the SatLayer core contracts.

🛠️
👉
Task Caller
Aggregator
Squaring Software
Reward Uploader
Hello World BVS Contract
Hello World BVS