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.8.5-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (411.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.5-cp39-cp39-macosx_10_9_x86_64.whl (349.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.8.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (411.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.5-cp38-cp38-macosx_10_9_x86_64.whl (349.7 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.5-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f4bdc5ea0fad2d98ab96f47257372c43ee7f92e60dc0031feec751049edd7038
MD5 2a33fb6cc419fd43943b6b5d2ffbf665
BLAKE2b-256 e4085963c4f39936ccb9b9e17e9277b57c8df01060f99265f5f4df2f9640e1cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.5-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 349.9 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for neo3vm-0.8.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3054a7f381e16e70208f7f126ac26472935587c800f0daabfa02ede92d41381a
MD5 c965c9427995990ddc35982c593338fa
BLAKE2b-256 7becb1529bfbc7bf56967bbab586d7c49bb5dfaadfdfd962c9268153657947e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 17383db01b208f36149cec651572cc89bba9cd1f7bb3300959522fba7a98d328
MD5 e44487c510b9c9a8eb2756eb310c2139
BLAKE2b-256 294424ddfe0f32d5e6dae473856ad0332a9b3da86cb1b98ce63696c0ad03f789

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.5-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 349.7 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for neo3vm-0.8.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 24010f2f127aaae717c4c58acf87d9baab4748efde629068493f703dfdc03f20
MD5 e27fa65275045c481877a36ce06415cb
BLAKE2b-256 4c115d0980e063afc117b807770e151e7f7bc1890dac269da090f780a122fe86

See more details on using hashes here.

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