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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.7.1-cp38-cp38-manylinux2010_x86_64.whl (402.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl (378.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.7.1-cp37-cp37m-win_amd64.whl (346.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.7.1-cp37-cp37m-manylinux2010_x86_64.whl (405.4 kB view details)

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

neo3vm-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl (367.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 344.6 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.7.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b4ece228c6d3d2e76ff63a137b1005c5fc8302fd0a689831e047cb18bb87f4f0
MD5 a43ef11ce94e62e4f2d81ace29d89696
BLAKE2b-256 414ad4abfc123e4f320eeff818d00584892c37e9aa87027a1a6d36c0a076389a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 402.8 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.7.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dd21930fab9045905d52c02712f4d071aa8855b4e770d3c2d809c2e0d15eeb24
MD5 33084bbe633b4a9182994556b91a73c2
BLAKE2b-256 5e374dfd87dc95aeb1d668aeb6c04b15e6b7caa615fb1b300629db784e880a25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 378.1 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.7.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 233c1659a44b99bd0f0ddb894da5ae3755c4c9aa3b3765debd37ccde1e927ace
MD5 f55ec7e038f143d80c0dc9bb0025f410
BLAKE2b-256 360e6e9b669cd6857e82b6a9cd8d5778e4f262125523d9ef0ee2d6cf44ea443b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 346.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.9

File hashes

Hashes for neo3vm-0.7.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 881512680be4ffb0b86d14e0f885ef31429626ec9545e3ae5fa95a587f610fca
MD5 a87cae61c7ceade07a1298c7d143e995
BLAKE2b-256 08ef42601a18aecb5f0169341e30a4a946a29b583cb6c9b85b31ad559f1ddaa5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 405.4 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.9

File hashes

Hashes for neo3vm-0.7.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 65aed4c32ec6e41b2ac739eace4e92311370a2837e6fb5ff242bb4bd6fd49559
MD5 2bba20cb96221302cd4d10f60080eaca
BLAKE2b-256 1cf6f1da0f26f501db75851d2d183f82fd163d120429a10c3bb6cccdc5e15bd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 367.3 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.9

File hashes

Hashes for neo3vm-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b24ec3d3091a8384114084d3cf0fa59381625d5738577da180b5615cc2c4d98e
MD5 21e8620264e1b093d55d850aec5bfc3c
BLAKE2b-256 2fb9c07549edc1cf0bced51fba14b215a29cf50366e2988b6e8fb13576ba6cbb

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