Module prio::util[][src]

Utility functions for handling Prio stuff.

Structs

UnpackedProof

Unpacked proof with subcomponents

UnpackedProofMut

Unpacked proof with mutable subcomponents

Functions

deserialize

Get a vector of field elements from a byte slice

proof_length

Returns the number of field elements in the proof for given dimension of data elements

reconstruct_shares

Add two Field element arrays together elementwise.

serialize

Get a byte array from a slice of field elements

unpack_proof

Unpacks the proof vector into subcomponents

unpack_proof_mut

Unpacks a mutable proof vector into mutable subcomponents

vector_with_length

Convenience function for initializing fixed sized vectors of Field elements.