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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.8-cp38-cp38-manylinux2010_x86_64.whl (404.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8-cp38-cp38-macosx_10_9_x86_64.whl (379.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.8-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 345.7 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.9

File hashes

Hashes for neo3vm-0.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5aaf6ef35a156a31aacf99b1e576f1333bf1e27010aa18cbf1ce72f23cd7d697
MD5 b31e65f08b395481a7b0fb2160b2152e
BLAKE2b-256 7550196731dc95df9b7f07fa5b54f91368761f5ccf61eb9a2c3f5c76be0e1435

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 404.0 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.9

File hashes

Hashes for neo3vm-0.8-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b3a26144591c3cd40aa9d865dcb20c9587a618599facc4a7ba5756250e48d308
MD5 5863a0f4644f148faf8b0a1c793077f5
BLAKE2b-256 2a14d87b762398206a6042aed1a97f662db25e4f056d1e1fbc1e68196566c5f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 379.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.9

File hashes

Hashes for neo3vm-0.8-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0091d65c0f263151d9722622a0688f2daaed6bc8dc4b93523c125c9e35d0cd67
MD5 963cc41cee368d30334ac2448f9ae546
BLAKE2b-256 ec40d912a428daddd926b81e4c70969cf9d5239c718641accda82f6350c3b676

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