pub enum Pricing {
Blake2F {
gas_per_round: u64,
},
Linear(Linear),
Modexp(Modexp),
Modexp2565(Modexp2565),
AltBn128Pairing(AltBn128Pairing),
AltBn128ConstOperations(AltBn128ConstOperations),
Bls12ConstOperations(Bls12ConstOperations),
Bls12Pairing(Bls12Pairing),
Bls12G1Multiexp(Bls12G1Multiexp),
Bls12G2Multiexp(Bls12G2Multiexp),
}
Expand description
Pricing variants.
Variants
Blake2F
Fields
gas_per_round: u64
Price per round of Blake2 compression function.
Pricing for Blake2 compression function: each call costs the same amount per round.
Linear(Linear)
Linear pricing.
Modexp(Modexp)
Pricing for EIP198 modular exponentiation.
Modexp2565(Modexp2565)
Pricing for EIP2565 modular exponentiation.
AltBn128Pairing(AltBn128Pairing)
Pricing for alt_bn128_pairing exponentiation.
AltBn128ConstOperations(AltBn128ConstOperations)
Pricing for constant alt_bn128 operations
Bls12ConstOperations(Bls12ConstOperations)
Pricing of constant price bls12_381 operations
Bls12Pairing(Bls12Pairing)
Pricing of pairing bls12_381 operation
Bls12G1Multiexp(Bls12G1Multiexp)
Pricing of bls12_381 multiexp operations in G1
Bls12G2Multiexp(Bls12G2Multiexp)
Pricing of bls12_381 multiexp operations in G2
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Pricing
impl<'de> Deserialize<'de> for Pricing
sourcefn 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
impl StructuralPartialEq for Pricing
Auto Trait Implementations
impl RefUnwindSafe for Pricing
impl Send for Pricing
impl Sync for Pricing
impl Unpin for Pricing
impl UnwindSafe for Pricing
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more