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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.4.3-cp38-cp38-manylinux2010_x86_64.whl (386.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.4.3-cp38-cp38-macosx_10_9_x86_64.whl (361.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.4.3-cp37-cp37m-win_amd64.whl (329.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.4.3-cp37-cp37m-manylinux2010_x86_64.whl (389.6 kB view details)

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

neo3vm-0.4.3-cp37-cp37m-macosx_10_9_x86_64.whl (352.1 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 328.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.4.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3b3b02a20e64f7cbf9c4aa3bb8398a2b354c0b184e8a3d768fcf3aa0b484af6
MD5 865762af918f4482ce7eeebe01bb34d1
BLAKE2b-256 c8be88f58ffd2b7aa8147a40bb8eec7fa08e6394c70bb415054f705964a38f6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 386.4 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.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8e9b53e8a31b05281c123b0c8a7327c469766a7d74f13e48e05608d8d833801a
MD5 cfbb0069a093175b543d9a56025a5587
BLAKE2b-256 135f0d77556992d236a718410a0335e647b84123aa781de108d9b4d0b9000e55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 361.8 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.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 567a23b4b0161c3770e9bd56b0c2a018536737531e15f32352d675beb207a917
MD5 1cdb7c9805060d1a132455b62e9bed4a
BLAKE2b-256 8ea50958787a1c478ffc225c5b3af75aa7696c76fddee26f4472b1a78f1ec4ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 329.2 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.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 6a91af2c30128cd1feab75973616de5657281db7de9e4ade3cfe6b4b0dc2fa2f
MD5 edcb0c88b44fd608c3d89ff10c33366f
BLAKE2b-256 2bb8fdc6f685c6870502441394653f1e1e6194eea591dd117e77aebbd930dd08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 389.6 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.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c9f25eb0a06cbc76c44c9e5c969a9d4ccb6a63530a7b43be331a7edc696e4297
MD5 055a8e075f660272f5dfb38d2b86115f
BLAKE2b-256 9c632a813a6c33f6cec8d864bbedcc2a55e1b6d5396cb5bdaacdf52124828c0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 352.1 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.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b6b107be054bed0e9a6c825b3cf2e5d65844bc7f8775bfdd6e5da2962296a6dd
MD5 885383b556ea766ca731958ac2684561
BLAKE2b-256 78717a9d536baa6e7f786fb84b6d3803a4fff8e5e7ace02da469e63aa14e3a35

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