Skip to main content

Module decode

Module decode 

Source
Expand description

Decoding functions for the wirings and other constants Serialization and deserialization of the parameters of the iriscode circuit.

Functionsยง

decode_i32_array
Given a byte array representing a 1d i32 array, then serialized as bytes, return the i32 array.
decode_i64_array
Given a byte array representing a 1d i64 array, then serialized as bytes, return the i64 array.
decode_wirings
Given a byte array representing the wirings from the image (2d) to the LH matrix multiplicand (2d), first a flattened u16 array, then serialized as bytes, return the wirings as a Vec of tuples of 4 u16s.