Basic Concept
Zentra work with existing ETH compatible blockchain, but providing a non-EVM Python virtual machine. It means existing popular library like web3.py and ethers.js can be used for blockchain development. The development language is standard native python. It is the dynamic CPython with python bytecode instead of other python-like static languages like Vyper. On chain smart-contract (function in Zentra) development must be done in python.
The blockchain is modeled as a State Machine. We build functions in python to apply the change to the state with the ordered transactions in a block.
A Zentra transaction customs CALLDATA talking to ETH RPC. It is in JSON format:
{"p": "zen", "f": "token_create", "a": ["ZENT", "Zentra", 18]}p stands for the protocol, it should be zen for mainnet.
f stands for the function to call, it is string type.
a stands for the arguments, it is a list.
Python's Role in Simplifying Rewrites
Python's simplicity and familiarity make rewriting applications from other blockchains straightforward. Unlike Solidity or Rust, Python's dynamic nature and readability allow developers to port logic with fewer syntax changes, reducing errors and speeding up migration. This is particularly useful for adapting dApps from EVM-compatible systems, enabling faster iterations and better security through accessible code reviews.
Last updated