ShinyBlock is a research-oriented framework designed to simulate the core requirements of blockchain technology.
The package uses Python’s standard library to ensure cryptographic parity with production systems. - Hashing: Every block is tethered via SHA-256. - Merkle Trees: Transaction integrity is verified via Merkle Roots.
Users can adjust the “Difficulty” parameter to observe how Proof-of-Work (PoW) scales. As difficulty increases, the nonce-search space grows exponentially.
The simulation includes a supply chain module and a smart contract VM to demonstrate how private blockchains differ from public ones.
To launch the interactive dashboard, simply run the following command in your R console. This will initialize the Python engine and open the Shiny interface in your default browser.
Since ShinyBlock utilizes a hybrid R-Python
architecture, you must initialize the Python virtual environment and
install the necessary cryptographic dependencies (specifically the
ecdsa library) before the first run.
The package provides a helper function to automate this process: