Skip to main content

Crate ckb_pow

Crate ckb_pow 

Source
Expand description

Proof of Work (PoW) engine implementations.

This crate provides the PoW engine interface and various implementations for CKB’s mining algorithm, including Eaglesong and dummy engines for testing.

Structs§

DummyPowEngine
A mock Pow Engine, mostly for development&test purpose, and may not used in real world verification
EaglesongBlake2bPowEngine
PoW verifier using Eaglesong hash, but with Blake2b as the final hash function
EaglesongPowEngine
PoW verifier using Eaglesong hash

Enums§

Pow
The PoW engine traits bundled

Traits§

AsAny
A trait for casting to trait Any
PowEngine
A trait for PoW engine, which is used to verify PoW

Functions§

pow_message
Combine pow_hash and nonce to a message, in little endian