Module orb

Module orb 

Source
Expand description

Helper functions and constants that are shared with the Orb. See here.

Structs§

SerializedImageCommitment
An image, its serialized commitment, and its serialized blinding factors (serialized as per the Orb’s serialization functions). (This is useful since the Vec<u8> representation of the attributes are convenient for receiving data from the phone app.)

Constants§

IMAGE_COMMIT_LOG_NUM_COLS
PUBLIC_STRING

Functions§

deserialize_blinding_factors_from_bytes
Helper function to read a Vec of bytes as serialized blinding factors in a manner compatiable with the Orb’s serialization functions.
deserialize_commitment_from_bytes
Helper function to read a Vec of bytes as a serialized Hyrax commitment, in a manner compatible with the Orb’s serialization functions.
load_image_commitment
Returns a SerializedImageCommitment containing image, serialized commitment, and serialized blinding factors for the given version, mask, and eye (uses dummy data).