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
Release history Release notifications | RSS feed
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 details)
File details
Details for the file RandomX-1.1.10.post3.tar.gz
.
File metadata
- Download URL: RandomX-1.1.10.post3.tar.gz
- Upload date:
- Size: 271.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf135c3e63ca15d1a1f32c98e2e1de4dffa4385a66cf82dac591fadc6fba3a0a |
|
MD5 | 832e12a52ae0c8d8c3c3c18a87ef07dd |
|
BLAKE2b-256 | a8c62318a5eead951b31cd97987a5ccd0c1634cea91110be5e79f445e3a28adf |