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

Returns the r1 value of the Score.

Returns the r2 value of the Score.

Returns the y value of the Score.

Returns the y_prime value of the Score.

Returns the value of the Score.

Given a Bid, compute it’s Score and return it.

Trait Implementations

Performs the conversion.

Write the value as bytes to a Sink

Read the value from bytes in a Source

Returns the number of bytes needed to encode this value

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Serialize Self into a [[u8; N]].

Deserialize a [&[u8; N]] into Self, it might be fail.

The size of

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserialize a slice of u8 into Self

Deserialize the type reading the bytes from a reader. The bytes read are removed from the reader. Read more

Encode Self into a buffer

Performs the conversion.

Performs the conversion.

Return a reference to the key of the leaf type

Parse a string slice as bytes hex representation and returns `

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.