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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

neo3vm-0.10.0-cp39-cp39-macosx_10_9_x86_64.whl (361.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

neo3vm-0.10.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (421.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

neo3vm-0.10.0-cp38-cp38-macosx_10_9_x86_64.whl (361.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for neo3vm-0.10.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d08fd7155ddb96f4d37c41f9306ae19f54816f77773e5645a3d4487813289223
MD5 e52cdb5d43697aed84f7fa2ebcffc72c
BLAKE2b-256 ee37abcbc371b19fbfb8132701b52a069ac1d5655dc71d0aef8dcb25fed8e7d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.10.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b3bf5b946a7923ad13fc01649a13f9d8cc3a2a72b4c04d587dbe9cda64a649d
MD5 102038224c6798f54c4bcc6a32760e29
BLAKE2b-256 88765a5073556cde34195fef1c6e3f788f9f0f0fff741bac84b02232c839d2fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.10.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 309a2bf26b2e3a940961356cadbe359551e78452093be8ab9221bd1cc69741bc
MD5 90edc73e534a719355aa471d20e1f1dc
BLAKE2b-256 fe49c637324c9483cd7423a341d438138e53048d1feddbfcd2341462a8908829

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neo3vm-0.10.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 91b3069c4756d0928467ed9ac9158427be2b553f4607ebd9b503840cbcf0285d
MD5 f49e96e495c6edb7292a70a52b4a5336
BLAKE2b-256 c4018757ea49a0d7272a9b3a333ea786dde7a97221bc128a7d4b80129289d68c

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