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.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (409.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.4-cp39-cp39-macosx_10_9_x86_64.whl (348.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.8.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (409.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.4-cp38-cp38-macosx_10_9_x86_64.whl (348.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file neo3vm-0.8.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for neo3vm-0.8.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0d65f07ec24fffc37cefb55a1f0f08e828adb98d5eee1961dc2d5b99d070939f
MD5 4554813007c03c4817d8acf048b8b70f
BLAKE2b-256 60a2b49186e0a5fc6ee63578f8e33d0f1be8c3f4a4579a5fb8223966acae5f07

See more details on using hashes here.

File details

Details for the file neo3vm-0.8.4-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: neo3vm-0.8.4-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 348.1 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for neo3vm-0.8.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e6021c63bcfd60c77789dfe35ff9e07051110329e05bd56e835ac1e5b10bdb59
MD5 adb569aa157c40605d3898c801abc5d8
BLAKE2b-256 ff074d2e17bdf2c07de917533d4c8c1c3e42b2d1fdd38b28bd440247211f18c0

See more details on using hashes here.

File details

Details for the file neo3vm-0.8.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for neo3vm-0.8.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 121fb521ee39efb86c0d80d0fc68cee4a873a852de49d849b2f5b376a53f6736
MD5 6e12f59c2b5a526dd4d4417919ee2b5e
BLAKE2b-256 b6e5efe47f6cdd68e64709c73a9e3ef9c79472266dbcd1fe36a1805dc49c9e07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.4-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 348.0 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for neo3vm-0.8.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 21aaacdddc47b9b8450c82c5023f9e313e4c741800153c6c372719eb98f441e1
MD5 99f58886187cdf68dd376243a9b33077
BLAKE2b-256 46038e480af2711004bed1b921957c2b8a4744d44af1316d52680c8981962cdd

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