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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.6-cp39-cp39-macosx_10_9_x86_64.whl (351.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.8.6-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.6-cp38-cp38-macosx_10_9_x86_64.whl (351.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.6-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f0fab625c9f5410798ffe54ab12c33e077f999db8a3e08c860fac1cc2e9fd481
MD5 2ad2e45b3b8154932e1b6a47ef951b80
BLAKE2b-256 b77d6ffa6cb75cbb36f0db2168c320dc59a6ecb663d53671ec4526ebcbd8b1c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.6-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 351.4 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for neo3vm-0.8.6-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 457a0deac7e0db3054aa4606e67d008081bf518a36908d49d3de06ac07be6663
MD5 0c51e6399590f53cdf27f6a95c1bd267
BLAKE2b-256 e4c0097ca2be19358b3dfb3316dfd7bb09e4f172afc9e2efd0a5919ccc2905a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.8.6-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1dd34d0378614da73a54d827b3108a20a2b7d2d44259bb3f13c1909f3c8b5c43
MD5 9daf5bddbaac71579e8a317a82550fb8
BLAKE2b-256 a01231e5047f26c272ab0b0650d458f7f02a98cc3da5fa3ee8d6b8fafa19f86e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.6-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 351.1 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for neo3vm-0.8.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b29bb40a9404c1aa16f17a3ff11d20bb7865fa60d1cb58368ca6bb307f9434c0
MD5 302a28ac794f0ea71f608ae347d54f56
BLAKE2b-256 9e8e0dfc0bb9ee98677c68622a9f2d46d231b3d7cbcc4c0cd46009e928f9e738

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