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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.7-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-cp37-cp37m-win_amd64.whl (347.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

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

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

neo3vm-0.7-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-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: neo3vm-0.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 346.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8cdfcffcb24b51735712e9808b47678e737eea2abbf6f0748e3413868f2a0ece
MD5 87faa2d840b6771b4c3405550d871aa1
BLAKE2b-256 5a232161a5bf32f1c6bd312b488ee2436dda75c401b993ba140e94a6fb65aa9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7-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.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ae452eca81e0f0fbac4b026ef42cd4bd86f58663bf361c7b1fe3c8b2e43b354f
MD5 ea17dac5910e7e14fc3d03685ffc8731
BLAKE2b-256 ef59e6274bd317fae554627534c9404f7fb3daf3cd392430d4d6fd90d64a4a77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7-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.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b9cb86bf73be559ff5923d214b12a28907119e46826ac7b94656bcc61a453745
MD5 e468012b48dd570caba69f10106f576b
BLAKE2b-256 007a670e2dcd861fb96a605ae948f41e49db985407ffdf5a615d5b2667ef082f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 347.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b52571a386997ebf52f775b7deb5774aaf7dfa858bf269c8933e04282dd591c9
MD5 ca3ed5469f99e17e721aff967d910311
BLAKE2b-256 8dfbb4aa11858d2de7cada1091658b3339d51a414ba7a396141eb6285a9f2d9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7-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.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 876a9a820cc398d8079c29cdffeffa8aa9e3c39fc2de2549f77e976bf815d717
MD5 ac97740b25e9ccaef6b4a18a5d4ffe66
BLAKE2b-256 169d7074bc89a8d41378e6d1d5cdc94fd66f24b0d8fa04627f5b9fade2cdd22d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.7-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.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.9

File hashes

Hashes for neo3vm-0.7-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 057506fabc32b9f7583aaecf9ce0f18d120ed54b4a058a4a5a968b36bbe16471
MD5 213ebe84703e8b53a847b93be70f9bac
BLAKE2b-256 60d7c963b03e2ec22016a943f0dc12d96a1585d6db81a1404704ed414d6e1251

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