Trait bee_pow::providers::NonceProvider [−][src]
A trait describing how a nonce is provided.
Associated Types
type Builder: NonceProviderBuilder<Provider = Self>
[src]
The type of the nonce provider builder.
type Error: Error
[src]
Type of errors occurring when providing nonces.
Required methods
fn nonce(&self, bytes: &[u8], target_score: f64) -> Result<u64, Self::Error>
[src]
Provides a nonce given bytes and a target score.
Provided methods
Loading content...Implementations on Foreign Types
impl NonceProvider for u64
[src]
A nonce provider that returns constant nonces.