Struct kzg_rs::trusted_setup::KzgSettings
source · #[repr(C, align(4))]pub struct KzgSettings {
pub roots_of_unity: &'static [Scalar],
pub g1_points: &'static [G1Affine],
pub g2_points: &'static [G2Affine],
}
Fields§
§roots_of_unity: &'static [Scalar]
§g1_points: &'static [G1Affine]
§g2_points: &'static [G2Affine]
Implementations§
source§impl KzgSettings
impl KzgSettings
pub fn load_trusted_setup_file() -> Result<Self, KzgError>
Trait Implementations§
source§impl Clone for KzgSettings
impl Clone for KzgSettings
source§fn clone(&self) -> KzgSettings
fn clone(&self) -> KzgSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KzgSettings
impl Debug for KzgSettings
source§impl PartialEq for KzgSettings
impl PartialEq for KzgSettings
impl Eq for KzgSettings
impl StructuralPartialEq for KzgSettings
Auto Trait Implementations§
impl Freeze for KzgSettings
impl RefUnwindSafe for KzgSettings
impl Send for KzgSettings
impl Sync for KzgSettings
impl Unpin for KzgSettings
impl UnwindSafe for KzgSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)