C++ port of the NEO 3 Blockchain virtual machine
Project description
NEO3VM
A C++ port of the NEO3 Blockchain Virtual Machine with bindings for Python 3.8.
Installation
pip install neo3vm
Or download the wheels from the Github releases page.
Usage
import neo3vm
# PUSH1, PUSH2, ADD (1 + 2 = )
script = neo3vm.Script(b'\x11\x12\x9E')
engine = neo3vm.ExecutionEngine()
engine.load_script(script)
engine.execute()
assert(engine.state == neo3vm.VMState.HALT)
assert(engine.result_stack.peek() == neo3vm.IntegerStackItem(3))
Further documentation on the classes can be queried from the extension module help(neo3vm).
Bindings vs source code
For the time being only the Python bindings are made available publicly. Other bindings may follow.
If you have a use-case for the C++ VM feel free to reach out to python@coz.io to discuss the possibilities.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for neo3vm-0.10.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0dd82f0a9f19f35a80f453e4b06b0ccf674ab82a37fa60e6da204acfe433cc5 |
|
MD5 | 8d301544d60086ae86cf8484c4ad9d77 |
|
BLAKE2b-256 | a7a08346244aa35a8207a95570952d9a285c6512371bb4e85f16b7f09e0e4adb |
Close
Hashes for neo3vm-0.10.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66c7ad9b15225682a736fc011add6613058c5400047897c1507e776cd5f66f52 |
|
MD5 | 1dbb00c13ab66a096285c57befcb2972 |
|
BLAKE2b-256 | ee17f946a7a42397c5923fff39bd95748f8b5c14e20a010550503f244efa7a50 |
Close
Hashes for neo3vm-0.10.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 603986ee38aa1988e0e88c0543ce02f8a67952b1b62553411386a94cfb1a5c0d |
|
MD5 | d64d8f033062df1e3ce878d6b47729b1 |
|
BLAKE2b-256 | 937f17701f5dadde045a68ea9c85906873bd945a9d1457d9d95f2d29570b4847 |
Close
Hashes for neo3vm-0.10.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75b59b879cde3fcf08dd47f369b20970d57125491ab1d5f86653866ab71bde4 |
|
MD5 | 17783f70290b56cde8db5411ef00efe5 |
|
BLAKE2b-256 | 29cbe3e53683a1cd60da83e772ede2f2804fe1f4086d017eea034950fc1c1811 |