In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to use Py-EVM compiled by Python". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope that this article "how to use Py-EVM compiled by Python" can help you solve the problem.
Py-EVM is a new implementation of ethernet virtual machine written in Python. Currently, there are 695 star on github, which are under active development, but are rapidly advancing through the test suites provided by Ethernet Square / testing. Thanks to Vitalik and existing PyEthereum code, we have made some rapid progress because many design decisions have been inspired and even ported directly from the PyEthereum code base.
Py-EVM aims to eventually become the de facto Python implementation of EVM, providing a wide range of use cases for both public and private chains. The development will focus on creating an EVM with a well-defined API, a friendly and easy-to-understand document that can be run as a fully functional main network node.
In particular, the Py-EVM goal is to:
Provides a sample implementation of EVM for Python, one of the most widely used and understood languages.
Provide customers with low-level API to build complete or lightweight nodes.
Easy to understand and modify.
Highly flexible support for alternative use cases such as research and private block chains.
Trinity
Although Py-EVM provides the low-level API of EVM, it is not intended to directly implement full nodes or light nodes.
We provide a basic implementation of a complete node called Trinity based on Py-EVM.
There may be alternative clients based on Py-EVM in the future.
Step 1: Alpha release
The plan starts with a MVP,alpha-level release for testing purposes. We will look for early adopters to provide feedback on our architecture and API choices, as well as general feedback and bug discovery.
Development
Py-EVM relies on submodules of all common client tests, so you need to clone repo with the-recursive flag. For example:
Git clone-recursive git@github.com:ethereum/py-evm.git
Python 3 is required for Py-EVM. In general, the best way to ensure a clean Python 3 environment is to use virtualenv, for example:
# once:$ virtualenv-p python3 venv# each session:$. Venv/bin/activate
Then install the required python package in the following ways:
Pip install-e. [dev] run the test
You can run the test using the following command:
Pytest
Or you can install tox to run the full test suite.
Releasing
Pandoc is required to convert markdown README to the correct format for proper rendering on pypi.
For systems like Debian:
Apt install pandoc
On OSX:
Brew install pandoc
To release a new version:
Bumpversion $$VERSION_PART_TO_BUMP$$git push & & git push-- tagsmake release
Create a new docker image:
Make create-docker-image version=
By default, this creates a new mirror with two tags pointing to it:
Ethereum/trinity:: (display version)
Ethereum/trinity:latest: (the latest, until overwritten with the "latest" of the future)
Then, push to docker hub.
How docker push ethereum/trinity:# the following may be left out if we were pushing a patch for an older versiondocker push ethereum/trinity:latest uses bumpversion
The version format of this repo is {major}. {minor}. {patch} indicates stable, {patch}. {minor}. {patch}-{stage}. {devnum} represents unstable (stage can be alpha or beta).
To release the next version, use bumpversion and specify the part to adjust, such as bumpversion minor or bumpversion devnum.
If you are in the beta version, the bumpversion stage phase will switch to the stable version.
To issue an unstable version when the current version is stable, specify a new version explicitly, such as bumpversion-- new-version 4.0.0-alpha.1 devnum
This is the end of the content about "how to use Py-EVM written by Python". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.