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.4.1-cp38-cp38-win_amd64.whl (315.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.4.1-cp38-cp38-manylinux2010_x86_64.whl (377.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.4.1-cp38-cp38-macosx_10_9_x86_64.whl (356.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.4.1-cp37-cp37m-win_amd64.whl (316.5 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.4.1-cp37-cp37m-manylinux2010_x86_64.whl (379.7 kB view details)

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

neo3vm-0.4.1-cp37-cp37m-macosx_10_9_x86_64.whl (345.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 315.5 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.4.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c7269f7fba6e66cbc6d82a8f0a012e463b3c2b6a381a0033fad9b9738a0e165f
MD5 20cc426fe3c966f4f6b8ce8761a1645b
BLAKE2b-256 4adb37f38f9793aea9499e2f19022efab4d44ad367a5896045c975148f83adf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 377.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.4.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 feb971ad410d2ff6543b251f917494347ef520a0eea0ebba0c37891283c05fd4
MD5 7b6b2bb55be64c9f51e7880500154b00
BLAKE2b-256 a96f7a32ce74dbe285b393afa8179883864ccdd8f06232acca906d799b3d7b7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 356.4 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.4.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a68945e82472b0d46fc8d516564c091e17d138ff70c501430fc9f6621821c9e4
MD5 b1024f896f2a2342d93dae72f11d756b
BLAKE2b-256 a390097abf7e76c0dbab5747f035333313ac3206efd7c0682fe717257f4c694e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 316.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.4.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 96299315fa8b0a7407a5e7afebf2149f31b7e7a171d324ed22acb0ef4432a65c
MD5 53623864f0a686765d62a693c1eba980
BLAKE2b-256 16266a5b9a06bff1b051102ef7698886ccb1d740131eb038a0a9197cb66e8b22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 379.7 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.4.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 370069cc043c534f8379b676add2a420ee434046c2919236f52842ff9b60f1b3
MD5 c43f2ee1e63a9f443943c19fff417f4a
BLAKE2b-256 e4ea34c7f27e0e2d4be804f9d796188a7a0bf5f6b0d41f17c2b09c6a96fee9f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 345.7 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.4.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 32dbb3cafdd2072566a620147b02dccdc8d6512b0484d840c0522c66a6cbac38
MD5 ab08f44c464a848819130cb1e0c9b655
BLAKE2b-256 5209d70a3e9ac0281b19afc6f64a23ba22f0c4aac9c00396247ca8d594e43682

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