Skip to content

qlrd/grind-rust-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grind-rust-simulator

This script is for educational-only purposes and is not intended for production.

It performs a proof-of-work's simulation of genesis block given:

  • dificulty_hex: 0x000000001;
  • target: 0x00000000ffff0000000000000000000000000000000000000000000000000000
  • prefix: Hello Wolrd!
  • nonce: it receive an increment until find a value less than target;

Install

git clone https://github.com/qlrd/grind-rust-simulator

Build

cargo build

Run

./target/debug/grind-rust-simulator

WARNING

This will increase CPU usage. For best performance, close all unused programs.

So far, tested on (with 16 threads):

OS Processor CPU usage found hash in (s) nonce hash
? 12th gen i5 ?% 239.49s 1480740277 00000000b4d3...86b1740
macOS M2 arm64 75-80% 2942.25s 1480740277 00000000b4d3...86b1740

About

A simple rust script to simulate PoW in bitcoin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages