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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.6-cp38-cp38-manylinux2010_x86_64.whl (402.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.6-cp38-cp38-macosx_10_9_x86_64.whl (377.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.6-cp37-cp37m-win_amd64.whl (347.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.6-cp37-cp37m-manylinux2010_x86_64.whl (405.0 kB view details)

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

neo3vm-0.6-cp37-cp37m-macosx_10_9_x86_64.whl (366.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 345.7 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.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f37cc432e91a0bb5d160f2f28af1f18d384cc7c77657b4111c6e07b9f6115282
MD5 c0df1dc0688f916b823b4fc70b7f8457
BLAKE2b-256 ecfc6ee04da63c068d89169053eef7450a3f312b889e019caee53efef4434161

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 402.1 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.6-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ae07ca9f9427d070081a75bf84cf69ba015871e5d219da0e76006bb305caa0ff
MD5 d5ff9ab61278765dc768b1cff269f9f0
BLAKE2b-256 854a18d3e485f32118baf3e0c8b0e8b1dc61f23090257ffeaac5df0e33bc0398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 377.4 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.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 87916b168bb37b71bbbddf20946d47b54f406185a7772ca0cba97264729d4991
MD5 593296653048cfd8a473fcba01e9bec1
BLAKE2b-256 17e8763ea25ae803f12cc1d35cacc55a1761f490d329bc0b55ac934f0d978fed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 347.0 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.6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f56d415cb98a64748d9cd4c197a5e28991cd0b2ba2c76d29b9fc51184e89992d
MD5 743e13e5c285cee9e65b4b082f9f270f
BLAKE2b-256 b33792abe88fa4a1de88afb122dc549540f4d521362cd9640b77fafb746082e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 405.0 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.6-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4aa3989ae843db73fc0f77d91cca84b242b11bde26d8b74625f4d56f5f4f0234
MD5 66d834ccb713170410cb12daeb9587a0
BLAKE2b-256 85b7e5a68d2ab9e1f50dbca314f8b0a5caf1888692a81603e3fe8eb02eb16980

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.6-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 366.7 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.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2ff4b23e20cdc25f4685cd48362f4a875cc0bc3872ce7955341a8347fdadc8fa
MD5 9887ab74cdfcfbbf978f426869104843
BLAKE2b-256 b181a311b434c5d7c68a207e82b50286a62a8487cbf90d8ab653d2fd315cda68

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