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.7 & 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.5.0-cp38-cp38-win_amd64.whl (337.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.5.0-cp38-cp38-manylinux2010_x86_64.whl (400.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl (374.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.5.0-cp37-cp37m-win_amd64.whl (338.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl (403.2 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

neo3vm-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl (364.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file neo3vm-0.5.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: neo3vm-0.5.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 337.3 kB
  • Tags: CPython 3.8, Windows 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.3

File hashes

Hashes for neo3vm-0.5.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e76aa4f1aeb163e08db9532a26f0329cf5482a7d44d16edf06cc39d581bd96d9
MD5 2b0b88b287c1d8597a426ec103633fd4
BLAKE2b-256 0f75764be3c1726c667ea28d57b5cda26530259732740a5649e9d6e64f21aaf2

See more details on using hashes here.

File details

Details for the file neo3vm-0.5.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: neo3vm-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 400.3 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ 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.3

File hashes

Hashes for neo3vm-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5f34b94c5d51aea426f516b7bcbbadb9f813c4c479b36308553095d336625e97
MD5 80f90bfa2a309521962933d1c7ffbe35
BLAKE2b-256 bc4fe43981237ddcef4ac8692f79b984fb87cb1adce9a7cf3cd54b1481f54ddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 374.5 kB
  • Tags: CPython 3.8, 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.3

File hashes

Hashes for neo3vm-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4252e1d9374893bbd5ee8b625839bd53695ea99dcfd7084a015f3ea4284506c6
MD5 e91fd134e77e1031612dba670cd8cc6b
BLAKE2b-256 b8f0581fceacd2cdc95336d0c705d0f327bfcff04e8b7a853dfa2608df0fd8f7

See more details on using hashes here.

File details

Details for the file neo3vm-0.5.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: neo3vm-0.5.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 338.5 kB
  • Tags: CPython 3.7m, Windows 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.3

File hashes

Hashes for neo3vm-0.5.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c605c257dac1e0382e3df961b117c014d9fd02eb66c24dee57860047d2497157
MD5 bf786e991dbb665a65ac7630e624e73f
BLAKE2b-256 5f9e851a3b541021848c45e8e5891b867c79d6948863c3eafc4588618b74ffb4

See more details on using hashes here.

File details

Details for the file neo3vm-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: neo3vm-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 403.2 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ 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.3

File hashes

Hashes for neo3vm-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 974cbc6415ca9ea29244681f642ef4258001dc6230110d4b53476e7cc0a8d32b
MD5 c7d38efd7151d5720d3272c6101ddf42
BLAKE2b-256 f010d8acfc34ee1a27c692da74cd32a18453b8e47c75eace3e8aad3b01fe8ee6

See more details on using hashes here.

File details

Details for the file neo3vm-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: neo3vm-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 364.3 kB
  • Tags: CPython 3.7m, 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.3

File hashes

Hashes for neo3vm-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 19ee260af5ff4e45b9b1454f1dc85a3f8d96991a1d078d0ff7a36745db6cc930
MD5 90773a3543a5f9d467b2006bc20291a4
BLAKE2b-256 ebba7f19355502fed45cf0b7fc03f4b2adb6f1bf0124db511bcd91f223ce9ac8

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