Struct phoenix_core::fee::Fee [−][src]
Expand description
The Fee structure
Fields
gas_limit: u64
The gas limit set for the fee
gas_price: u64
the gas price set for the fee
Implementations
Create a new Fee with inner randomness
pub fn deterministic(
gas_limit: u64,
gas_price: u64,
r: &JubJubScalar,
psk: &PublicSpendKey
) -> Self
pub fn deterministic(
gas_limit: u64,
gas_price: u64,
r: &JubJubScalar,
psk: &PublicSpendKey
) -> Self
Create a new Fee without inner randomness
Generates a remainder from the fee and the given gas consumed
Trait Implementations
Returns the associated StealthAddress
Attempts to convert a byte representation of a note into a Note
,
failing if the input is invalid
type Error = BytesError
type Error = BytesError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Fee
impl UnwindSafe for Fee
Blanket Implementations
Mutably borrows from an owned value. Read more
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
Parse a string slice as bytes hex representation and returns `