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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.3-cp38-cp38-manylinux2010_x86_64.whl (370.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.3-cp38-cp38-macosx_10_9_x86_64.whl (338.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.3-cp37-cp37m-win_amd64.whl (310.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.3-cp37-cp37m-manylinux2010_x86_64.whl (372.3 kB view details)

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

neo3vm-0.3-cp37-cp37m-macosx_10_9_x86_64.whl (329.1 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 309.2 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 faa9fba5bc4ac3d7d31f97f1f006a93858f280e392d9aaa387cadf0bc843a258
MD5 1dbb6bf902d10cf4e7bc180c96858d41
BLAKE2b-256 a557522e33f0c773b07ee3410a9e31b7e61783ee694f365119bde07eb0543b05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 370.5 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5033ca32860d3c354e6fb6efd52aec75fca4d702e22634279b5fd8d4b3798f88
MD5 be0a4e214a43bb80d9eee2378d6c15c1
BLAKE2b-256 9603c250249f165340943b75f3f1bc2b632bb3985845bc584963b4feba02c941

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 338.6 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 32e53427b39e1a71b07ca887b37c92271d4360641d7dbffde921511f19b4c44b
MD5 b987984d83f7b4d87c8d6777d454075c
BLAKE2b-256 28bc6abed7c9861d576b8f4777ea381b83f6cd79f3aea8dd045eaef7adee7fee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 310.4 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 93d303ae22e4a30d78f3f47c1b7b7bff0646d05a8dd2d05e79efbcb6c791dae3
MD5 8e15eda4268d7eb4d3d1fa62c55b77d3
BLAKE2b-256 51a642d996e9b460cf460c18688b2b74300984e62b35fe232b0c00f8f02a54d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 372.3 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e2c13c4814be2f6b98ef821b14ffb0b896f0479303dae794bdb171f2573050bf
MD5 33e727a58d04118cbcd7249031140523
BLAKE2b-256 bf96b306f3494dd6b02eb224169b061e4e00d11e519037e51a555390f179f5e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 329.1 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e46698eaabdfdeecac66675514b96475a3989397d6cf5fed6ad1563ac62b65f3
MD5 e9f32a3ed45a5ca32586b6da9c98cdae
BLAKE2b-256 e675383e9c45c96229864f713077a26310ea83a4e2829a81d579608753c1d3e1

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