group

Trait WnafGroup

Source
pub trait WnafGroup: Group {
    // Required method
    fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize;
}
Expand description

Extension trait on a Group that provides helpers used by Wnaf.

Required Methods§

Source

fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize

Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§