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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl (354.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (410.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl (354.0 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for neo3vm-0.9.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f33212c497974c2f7a49b923edbf88ff1c29c526ce0b792bf23ab66573117f47
MD5 b64819d2f96c4f03dc2e0aa071dd4a3c
BLAKE2b-256 146e5a0762cc7a0fbda7d91c6146fe7e3416802e3e44e2e1883d886cc1ca5c4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1b3738933c70bb9a341e2b09c4a0ffc7504d5ff0ed3e50b5228c37d54c14be42
MD5 30bc27af9dd0f2e408086c5bad9f8499
BLAKE2b-256 26531576e610615ae738c52c3706ee86393919169310e874e298a6e5370a8142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 18dfd0177c99d1f698d2022bba3e77d96e454b4cc376b14a733b300225dc6dcf
MD5 6e2f4552bc49ba9863d2b9e214fcb2d9
BLAKE2b-256 0075ac2dce9a180dc740dccba7a024b06f05c763a9f49ff068f74bc1c18aa131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9ea47684d8974a01b33e64a5ba893fe9641fb7ada1f506e734879f0db8a57b3c
MD5 90c81e802323b53e475d63f515b394e9
BLAKE2b-256 bd2d1c1affaeeb07aecffdec6279e50597ff9267398723030924511fc8d24685

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