Struct prio::server::Server[][src]

pub struct Server<F> { /* fields omitted */ }
Expand description

Main workhorse of the server.

Implementations

Construct a new server instance

Params:

  • dimension: the number of elements in the aggregation vector.
  • is_first_server: only one of the servers should have this true.
  • private_key: the private key for decrypting the share of the proof.

Generate verification message from an encrypted share

This decrypts the share of the proof and constructs the VerificationMessage. The eval_at field should be generate by choose_eval_at.

Add the content of the encrypted share into the accumulator

This only changes the accumulator if the verification messages v1 and v2 indicate that the share passed validation.

Return the current accumulated shares.

These can be merged together using reconstruct_shares.

Merge shares from another server.

This modifies the current accumulator.

Errors

Returns an error if other_total_shares.len() is not equal to this

Choose a random point for polynomial evaluation

The point returned is not one of the roots used for polynomial evaluation.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.