Developer Center

Developer Center

  • Getting Started
  • Built-in Features
  • REST API Endpoints
  • Guides
  • Cheat Sheet

›Protocols

Getting Started

  • What is Sirius Chain
  • Setting up your workstation
  • Writing your first application

Built-in Features

  • Account
  • Mosaic (SDA)
  • Namespace
  • Transfer Transaction
  • Aggregate Transaction
  • Multisig Account
  • Metadata
  • Account Restriction
  • Cross-Chain Swaps
  • Exchange Market
  • Decentralized Exchange Market
  • Liquidity Provider
  • Storage

Protocol

  • Node
  • Block
  • Cryptography
  • Transaction
  • Validating
  • Consensus Algorithms
  • Receipt
  • Inflation

REST API

  • Overview
  • Tools
  • Serialization
  • Websockets
  • Status Errors

SDKs

  • Overview
  • Architecture
  • Languages
  • Extending Sirius Chain Capabilities
  • SDK Development
  • SDK Documentation

Wallets & Explorers

  • Wallets & Explorers

Cheat Sheet

  • Sirius Chain Cheat Sheet

Guides

  • Overview
  • External Guides
  • Account

    • Creating and opening an account
    • Getting account information
    • Getting the amount of XPX sent to an account
    • Reading transactions from an account

    Account Restriction

    • Preventing spam attacks with account restrictions

    Aggregate Transaction

    • Sending payouts with aggregate-complete transaction
    • Creating an escrow with aggregate bonded transaction
    • Asking for mosaics with aggregate-bonded transaction
    • Signing announced aggregate-bonded transactions

    Block

    • Listening to New Blocks
    • Getting block by height

    Cross Chain Swaps

    • Atomic cross-chain swap between Sirius public and private chains

    Metadata

    • Account Metadata
    • Mosaic Metadata
    • Namespace Metadata
    • Account Metadata (Deprecated since 0.7.0 Sirius Chain release)
    • Mosaic Metadata (Deprecated since 0.7.0 Sirius Chain release)
    • Namespace Metadata (Deprecated since 0.7.0 Sirius Chain release)

    Monitoring

    • Monitor transaction

    Mosaic

    • Creating a mosaic (SDA)
    • Getting the mosaic information
    • Getting the asset identifier behind a namespace with receipts

    Mosaic Levy

    • Modifying Mosaic Supply

    Multisig Account

    • Converting an account to multisig
    • Modifying a multisig account
    • Creating a multi-level multisig-account
    • Sending a multisig transaction

    Namespace

    • Registering a namespace
    • Registering a subnamespace
    • Getting the Namespace information
    • Linking a namespace to a mosaic
    • Linking namespace to account

    Transfer Transaction

    • Transfer transaction
    • Sending an encrypted message

    Storage

    • Data Modification Cancel
    • Data Modification
    • Download Channel
    • Download Payment
    • Drive Closure
    • Finish Download Channel
    • Prepare Bc Drive
    • Replicator Offboarding
    • Replicator Onboarding
    • Storage Payment
    • Verification Payment

Storage

  • Overview
  • Participate
  • External Economy
  • Roles
  • Verification
  • Challenge
  • Rewards
  • Transaction Schemas
  • Built-In Features

    • Drive
    • Replicator
    • Verifier
    • Supercontracts

    Protocols

    • Cross-Block Protocol
    • Fair Streaming

    Storage User Application

    • Overview
    • Getting Started
    • Managing Drives
    • Managing Drive Files
    • Downloading Data

Cross-Block Protocol

Overview

The cross-block protocol is needed to check that Storage Replicator Nodes keep storing files through time. The protocol is developed to ensure data reliability and security. When the owner saves the new file, it forms the Merkle graph from its parts and applies it to the graph of the whole Drive. Afterwards, the owner sends the Upload transaction to Blockchain with the newly generated root hash of the whole Drive. Every Storage Replicator Node after transaction confirmation retrieves the difference including the new file from the owner and simultaneously verifies the validity of the formed Merkle graph. If everything is correct, then every Storage Replicator Node performs the next steps:

  1. Encrypts every retrieved data block with a secret key.
  2. Processes and prepares result block for future verifications through CPOR algorithm.
  3. Sends the encrypted block to another Storage Replicator Node chosen using the formula below.
  4. Waits for an encrypted block from another Storage Replicator Node, also using the formula.
  5. After the protocol round is finished every Storage Replicator Node stores the unique copy of the Drive with newly added file assembled from different pieces that were encrypted by different Storage Replicator Nodes with a secret key. That is, the stored data after the process can be easily fetched in the original form via decrypting the data with known public keys of Storage Replicator Nodes.

Example

A Drive has 5 Storage Replicator Nodes. Every R splits each file into 4 parts. R0 requests from R1 the file part at number 1; from R2 the file part at number 2 and so on. Also, R0 sends the file part at number 1 to R1; the file part at number 2 to R2 and so on.

Note
Every R has its number on the Drive contract. It gets the number according to the consensus algorithm.

Formulas

Request a file

Rk requests from Ri the file part at the number (k - i mod N) where N is the number of Storage Replicator Nodes.

Send a file

Ri sends the j-th part to R at the number ((i + j) mod N) where N is the number of Storage Replicator Nodes.

Retransmitting protocol

The Storage Replicator Node that found a mismatch, creates the new transaction to ban the unfair Storage Replicator Node. This transaction should be signed by a percentage of signers (defined when creating). Other Storage Replicator Nodes request the same parts of the file and check them. If the unfair Storage Replicator Node fails the check one more time, the verifier signs the ban transaction. If the minimum percentage of approval is collected, the unfair Storage Replicator Node will be banned. If there are not enough signatures, the initiator will receive the results.

← SupercontractsFair Streaming →
  • Overview
  • Formulas
    • Request a file
    • Send a file
  • Retransmitting protocol
  • Follow our profile
  • Ask development questions
  • Join our Discord channel
  • Explore our Youtube channel
  • Explore Github
Protocol
BlockConsensus AlgorithmsCryptographyInflationNodeReceiptTransactionValidating
Built-in Features
AccountAggregate TransactionCross-Chain SwapsExchange MarketDecentralized Exchange MarketMetadataMosaicMultisig AccountNamespaceTransfer TransactionStorageLiquidity Provider
References
REST APISDKsCheat Sheet
Includes Documentation Forked from NEM
Copyright © 2025 Sirius Chain