Struct dusk_blindbid::Score [−][src]
pub struct Score { /* fields omitted */ }Expand description
The Score represents a “random” value obtained from the computations
based on blockchain data as well as Bid data.
It derefs to it’s value although the structure contains more fields which
are side-results of this computation needed to proof the correctness of the
Score generation process later on.
Implementations
pub fn compute(
bid: &Bid,
secret: &JubJubScalar,
psk: &PublicSpendKey,
secret_k: BlsScalar,
bid_tree_root: BlsScalar,
consensus_round_seed: BlsScalar,
latest_consensus_round: u64,
latest_consensus_step: u64
) -> Result<Score, BlindBidError>
pub fn compute(
bid: &Bid,
secret: &JubJubScalar,
psk: &PublicSpendKey,
secret_k: BlsScalar,
bid_tree_root: BlsScalar,
consensus_round_seed: BlsScalar,
latest_consensus_round: u64,
latest_consensus_step: u64
) -> Result<Score, BlindBidError>Given a Bid, compute it’s Score and return it.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Scoreimpl UnwindSafe for ScoreBlanket Implementations
Mutably borrows from an owned value. Read more
Encode Self into a buffer
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 `