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

Uploaded CPython 3.8 Windows x86-64

neo3vm-0.4-cp38-cp38-manylinux2010_x86_64.whl (375.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.4-cp38-cp38-macosx_10_9_x86_64.whl (346.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

neo3vm-0.4-cp37-cp37m-win_amd64.whl (316.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

neo3vm-0.4-cp37-cp37m-manylinux2010_x86_64.whl (378.0 kB view details)

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

neo3vm-0.4-cp37-cp37m-macosx_10_9_x86_64.whl (336.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 314.6 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.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d62a97fe683dd8fad84db50d86edf1754a490171bb1a239dbf6633165378c758
MD5 3b2cbe80858d89915c553c1ee147af41
BLAKE2b-256 6f90677f397e3c8c10933d7791c61483bfd0d02d47dcf1994a3765c981666dea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 375.6 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.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 68a4602570e588e7fe0828fdebacc5a5ee34894abeea9fcae71007e2ff4c9828
MD5 0f068d6952622638db70304ea20eea5e
BLAKE2b-256 343f9072fd34c163ee34d2bd5a371e7d262d7e98b3f52b022ed60efbef832d8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 346.1 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.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 acb65999f876ec95f059d495f894f2bf19e2ad1feab65320212e404b4551a6e4
MD5 e164028ba42e372628a1b4a5ef31aded
BLAKE2b-256 8efb7be013029ea85fe3cc4c94c16769c7f7b755e8d4d88ababaf27afc03e1a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 316.0 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.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 aa4feedcd5a94ad2b77b5276b67b04d7d9e8f718f8c45180936bce82209662eb
MD5 4022636537fa0e58ddb325bba27b79e9
BLAKE2b-256 dc0dfd40be6429b0e5c7be454ac75b9bbd03b9fe565231290543641821e16bd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 378.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.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3f85414c02db9b886d7f80b395836bb2044c84fc8e587106a72a274fd885342d
MD5 02764660f3a5fdf753642aadef09ceed
BLAKE2b-256 fc6b2822a0329854c674308a6e0dd37adce03c4bcbed7784100fc64a5c1575ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neo3vm-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 336.3 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.50.2 CPython/3.8.3

File hashes

Hashes for neo3vm-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1da503960f29f18cd1436dc665b555a5f346e63d361b1eb603f640ad3d2e99a0
MD5 c70fbdd8b9033b506fb425780b81114b
BLAKE2b-256 1a79837b5cf0d7612699e3c5ac6a3a33dbce2e7c172cc14d3a5f81e794bb3900

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