nexus_sdk

Trait Parameters

Source
pub trait Parameters {
    type Ref: Reference;
    type Error;

    // Required methods
    fn generate(reference: &Self::Ref) -> Result<Self, Self::Error>
       where Self: Sized;
    fn load(path: &Path) -> Result<Self, Self::Error>
       where Self: Sized;
    fn save(parameters: &Self, path: &Path) -> Result<(), Self::Error>;
}
Expand description

A global, no-trust-assumption parameter set used for proving and verifying.

Currently only used by the legacy prover integrations.

Required Associated Types§

Required Methods§

Source

fn generate(reference: &Self::Ref) -> Result<Self, Self::Error>
where Self: Sized,

Generate parameters.

Source

fn load(path: &Path) -> Result<Self, Self::Error>
where Self: Sized,

Load parameters from a file.

Source

fn save(parameters: &Self, path: &Path) -> Result<(), Self::Error>

Save parameters to a file.

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.

Implementations on Foreign Types§

Source§

impl Parameters for ()

Source§

type Ref = ()

Source§

type Error = ConfigurationError

Source§

fn generate(_reference: &Self::Ref) -> Result<Self, Self::Error>

Source§

fn load(_path: &Path) -> Result<Self, Self::Error>

Source§

fn save(_parameters: &Self, _path: &Path) -> Result<(), Self::Error>

Implementors§

Source§

impl Parameters for nexus_sdk::legacy::hypernova::seq::PP

Source§

impl Parameters for nexus_sdk::legacy::nova::seq::PP