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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.5.1-cp38-cp38-manylinux2010_x86_64.whl (400.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.5.1-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.1-cp37-cp37m-win_amd64.whl (337.9 kB view details)

Uploaded CPython 3.7m Windows x86-64

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

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

neo3vm-0.5.1-cp37-cp37m-macosx_10_9_x86_64.whl (364.2 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 337.0 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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7733bb52eedd7d22f4304766ce9615bccd23a7793064d21b09fdaf678d97684f
MD5 139da3e4f90b94f4f8d9e49724d7fd91
BLAKE2b-256 26ed7cf0ec7cb1f534bd46f4621a1044b3ecfae8174387a98ad7d39aff153de2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 400.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.5.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a6b32fbc19a316212ac4df347b12c3117145e1f1bd6029c0f35e304cdbcb038b
MD5 cad16c78b1ec5c201169373c4935bfe9
BLAKE2b-256 d0746fcc5029d3e40e572d836c17afe5f80ca56d17367ca5f009210c07e2ae59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-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.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0e5313923014f3c71bc193707112e04489c7055810bd7d72250249d03490bb40
MD5 5a404e56734eb707b69f357e39accab4
BLAKE2b-256 a169314d5aec9b1f12c9950dc98025c9744844999ea4c1b4a0bf1f087e2638c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 337.9 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.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3247ac53cb83495878b8e088506f6ee0e3663f08ee1c5385724f4bbf7819fe6c
MD5 efe5a6faa2cb856666896cb643cdefdf
BLAKE2b-256 a2004c5ff2fa971a028e2e3394886cd825258d0f229bc138d36d32940a7e7bfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-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.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3c9f417e21a347ac710db4e0660db25451e1fb247a5ac94f25dae62788cbf04d
MD5 64c78d708a4857580ebe9241e253b4ec
BLAKE2b-256 a1b8af6374990513e388f6e4e15ca91e059ae12f5d9ebe7dd6abd82375b4d5b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.5.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 364.2 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.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6896a42e4c70c9279c1008a8d2a0f536c07ff052eee8d21ea76df7c1705179a5
MD5 6ac19b29afe3173defbe551a908fee02
BLAKE2b-256 7ce2d75fc686ed4b43f691e2e4f4878b0cdf5aefbb5b974143fafbec02b043c7

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