Expand description
Cuprate Consensus
This crate contains Monero block
and transactions
verification functionality.
This crate is generic over the database which is implemented as a tower::Service
. To
implement a database you need to have a service which accepts BlockchainReadRequest
and responds
with BlockchainResponse
.
Modules§
- __
private - batch_
verifier - block
- Block Verification.
- transactions
- Transaction Verifier Service.
Structs§
- Blockchain
Context - Raw blockchain context, gotten from
BlockchainContext
. This data may turn invalid so is not ok to keep around. You should keep aroundBlockchainContext
instead. - Blockchain
Context Service - The blockchain context service.
- Context
Config - Config for the context service.
Enums§
- Block
Chain Context Request - A request to the blockchain context cache.
- Block
Chain Context Response - Blockchain
Read Request - A read request to the blockchain database.
- Blockchain
Response - A response from the database.
- Extended
Consensus Error - An Error returned from one of the consensus services.
- Hard
Fork - An identifier for every hard-fork Monero has had.
Functions§
- generate_
genesis_ block - Generates the Monero genesis block.
- initialize_
blockchain_ context - Initialize the blockchain context service.