Registry / crypto / ckb-pow

ckb-pow

JSON →
library1.1.0rscratesunverified

Proof of Work (PoW) engine implementations for the Nervos CKB blockchain.

# Cargo.toml [dependencies] ckb-pow = "1.1.0"
INSTALL
IMPORT
SIG · CKB-POW
C
ckb-pow
cryptorustv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PowEngine
use ckb_pow::PowEngine;

Solves a PoW puzzle using the Eaglesong engine.

use ckb_pow::PowEngine; fn main() { let engine = ckb_pow::new_engine("Eaglesong"); let nonce = engine.solve(&[0u8; 32], 0x1fffffff); println!("Found nonce: {}", nonce); }
Debug
Known issues
gotchaPoW computation is CPU-intensive and may take significant time.
fix
Use appropriate difficulty targets and consider parallelization.
affects: >=1.1.0
Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Amazon
1
Resources
ckb-pow — cargo add ckb-pow · libregistry