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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.4.2-cp38-cp38-manylinux2010_x86_64.whl (377.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.4.2-cp38-cp38-macosx_10_9_x86_64.whl (357.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.4.2-cp37-cp37m-win_amd64.whl (318.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl (380.2 kB view details)

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

neo3vm-0.4.2-cp37-cp37m-macosx_10_9_x86_64.whl (346.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 316.9 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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 41449ff0dfd61db7a7569f433adb5599f0f497fa9819b23104f75692c95792bb
MD5 9038fccabfb914bd1c28dc2d62b5cd46
BLAKE2b-256 23ed7fa8ac0bf1536cf582615214e17a381e01042e41fa13070c0d0a4d8b5f49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 377.7 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.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 261aef25d17a679483d39424014f537b56bf9408d313dda3b9f027808191ab5b
MD5 55add70bfda07532e79c086af36aac45
BLAKE2b-256 558011377662cbc754c24c2b3d81b0dc6ef4f6db51f3e01927973a6cd918f72f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 357.3 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.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d43b96993714336804607c8fcbd1a1a358c25ff64a2601fc20b952ef53203446
MD5 1b9ccc65c43ccf391b3bd271a046c0b9
BLAKE2b-256 6e5365bf58ba4efcad723c657a46667e0460725a9a0d234973200ae42bfef60f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 318.1 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.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f7bc523435c5238a518a046d1bafbd0fa5574251b2619f9a6981f84202708877
MD5 f9b720b22bbe18942e006272faeb15f8
BLAKE2b-256 2f68467003b201117c344331e6e6b6a84e0cbe687a22c96a7eb23a85a08925e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 380.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.4.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 51673775b46de4785a8fe281570d6af57fbb6faa87869d074f49c3a629163d14
MD5 304cc8b8e909387cc3a858ae80a8220a
BLAKE2b-256 dee058dfd01944bd5ff71d96d022f9c40a2d2f7c4c22e8bdbb05b0835ccac477

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 346.9 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.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 25f7bbd276ebd823784c2f760ef5f5cf79121bc4dfba7c7dad12c97b04e14d1b
MD5 2ecaed579bb5e78c3983e082c6b45ae9
BLAKE2b-256 25251f36e9cee505c4de203c3d368f2a1b1fd6c2b06f3dd90ce77b6f8c6b2494

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