Struct noah_api::setup::BulletproofParams
source · pub struct BulletproofParams {
pub bp_gens: BulletproofGens,
pub bp_circuit_gens: BulletproofGens,
pub range_proof_bits: usize,
}Expand description
The Bulletproofs URS.
Fields§
§bp_gens: BulletproofGensThe Bulletproofs generators.
bp_circuit_gens: BulletproofGensThe Bulletproofs circuit generators.
range_proof_bits: usizeThe number of bits in the range proof.
Trait Implementations§
source§impl BulletproofURS for BulletproofParams
impl BulletproofURS for BulletproofParams
source§fn load() -> Result<BulletproofParams>
fn load() -> Result<BulletproofParams>
Load the URS for Bulletproofs.
source§fn increase_circuit_gens(&mut self, new_size: usize)
fn increase_circuit_gens(&mut self, new_size: usize)
Increase the Bulletproofs URS on demand.
source§impl Default for BulletproofParams
impl Default for BulletproofParams
source§impl<'de> Deserialize<'de> for BulletproofParams
impl<'de> Deserialize<'de> for BulletproofParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BulletproofParams
impl Send for BulletproofParams
impl Sync for BulletproofParams
impl Unpin for BulletproofParams
impl UnwindSafe for BulletproofParams
Blanket Implementations§
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more