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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.8.2-cp38-cp38-manylinux2010_x86_64.whl (409.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.2-cp38-cp38-macosx_10_9_x86_64.whl (381.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.8.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 354.8 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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6800ef8e149576a3a728c89efb697ae2f7c4e8c27a81d399528d2467f7925daf
MD5 43c6900df0b2bd47f9f617df4bac1b79
BLAKE2b-256 0f6778477faa6427c4f559ac35da9624d955498a31568dee762647d5066bc1bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.2-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 409.3 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.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 106b9288104ede20b8baccd7a72d346f8199fc66f899c1c57b36f6798650ad7a
MD5 a48844c2f6c0923204a528ed19d58ccf
BLAKE2b-256 1862ebb56b820cd9a8bc1ac5a810ca95e45c07dfb15919859933f999231eee01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.2-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 381.4 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.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d38bfe66f87dee70d8d22097cc61e5cbbbe0c76d747430f8978c28b8ebd81f57
MD5 4c2514f2f06e5432d01b980a92a94589
BLAKE2b-256 30d58c57fe2fb05a531ffea885fa20f2c660921ddeed04a22ba168e14da554a3

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