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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.3-cp39-cp39-macosx_10_9_x86_64.whl (347.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.8.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (408.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.3-cp38-cp38-macosx_10_9_x86_64.whl (347.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 860256deccd3d54457380cbb88083df608e78b5893fae8de336f87d0cc5607ac
MD5 cbf2f4cc2ac78d782158c1ccb342d484
BLAKE2b-256 b547b9aafd4386a675f7df7d45384c70d9a04b7bfa0d11c34f3b407a4c10f361

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.3-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 347.6 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.9

File hashes

Hashes for neo3vm-0.8.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 93b774e99fd180d5ade066818599f98f8ec9d4850bed1daacebd95731f0448c4
MD5 ecdf6cbb90c549bf578167b74d536ece
BLAKE2b-256 588a988e45932d7d7b3d964abf5d0a0db99aaf6f747c59b177fda9126756cd28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0ee6a4c2a81ede20aa36cf39756a1616440a6aa8ce3f1f9b4e3d6cacbcb97661
MD5 7767a4488bc4ede8fa7437602e518c5b
BLAKE2b-256 8391e9be4ae022934027fba997c4a664ab6e6a00c17eece07d5f038735e6d852

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 347.4 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for neo3vm-0.8.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f0172dc8bfa6869a389c5eb3a90f09fa3e8301763263d09d664a7a5168b9e75a
MD5 b2115ac42f376d463e547a4f55bd038b
BLAKE2b-256 041101b3500b964fd8b27500b021f45ca2fbc37ff6f2ff5f5d59fbb8223d20d9

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