Skip to main content

RandomX Proof-of-Work Hasher

Project description

RandomX

This is a python interface for https://github.com/tevador/randomx , a proof-of-work algorithm optimized for general-purpose CPUs, based on random code execution.

Installation

pip3 install randomx

Quick-Start

import randomx
vm = randomx.RandomX(b'key bytes', full_mem=False, secure=True, large_pages=False)
# full_mem: whether to operate in full mode or light mode
# secure: whether to bound executable sections
# large_pages: whether to place memory in large pages
hash = vm(b'message data')
hashes = [*vm.calculate_hashes([b'message 1', b'message 2', b'message 3'])]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RandomX-1.1.10.post3.tar.gz (271.9 kB view hashes)

Uploaded Source

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