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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.8.1-cp38-cp38-manylinux2010_x86_64.whl (404.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl (379.4 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.8.1-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.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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5c86f3f4f77074411a4511cecb3e54d05997615346d02b0d6585d1cf368101e5
MD5 26f67460376dd12faa805da7d422c3c4
BLAKE2b-256 c1c0788c8b557419e1002c67d0e4108be54f9e12c2c47eabeb568ccf2073ad2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 404.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.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.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8a4f96fe902565945759925c8a0b135dd9dc96b3bd829958b17d40d4ff7fd48f
MD5 69fce9d0178ad2954fe06b963b5ac7c4
BLAKE2b-256 3a6744f40fac51dd405828dcf3262db3490f1fe3e42da2d6623e5394b61a0df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.8.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 379.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.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a3d1b6b0788fb2657657a9f27bc8b90628f31f2c0f75a6096a02f2e7349018dd
MD5 9549144903c09afc066fc3fd517b9371
BLAKE2b-256 99f0c59374291f580673396621134a8774882b57a9a09d43406afd2a2668eef8

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