Skip to main content

C++ port of the NEO 3 Blockchain virtual machine

Project description

CoZ logo

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


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

neo3vm-0.10.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (423.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.10.1-cp39-cp39-macosx_10_9_x86_64.whl (364.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.10.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (422.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.10.1-cp38-cp38-macosx_10_9_x86_64.whl (363.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file neo3vm-0.10.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

Provenance

File details

Details for the file neo3vm-0.10.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for neo3vm-0.10.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 66c7ad9b15225682a736fc011add6613058c5400047897c1507e776cd5f66f52
MD5 1dbb00c13ab66a096285c57befcb2972
BLAKE2b-256 ee17f946a7a42397c5923fff39bd95748f8b5c14e20a010550503f244efa7a50

See more details on using hashes here.

Provenance

File details

Details for the file neo3vm-0.10.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

Provenance

File details

Details for the file neo3vm-0.10.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for neo3vm-0.10.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e75b59b879cde3fcf08dd47f369b20970d57125491ab1d5f86653866ab71bde4
MD5 17783f70290b56cde8db5411ef00efe5
BLAKE2b-256 29cbe3e53683a1cd60da83e772ede2f2804fe1f4086d017eea034950fc1c1811

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page