Expand description
Helper functions and constants that are shared with the Orb. See here.
Structs§
- Serialized
Image Commitment - 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§
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).