You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust-types generator uses the information provided by bin_prot which is the over-the-wire representation of the encoded value. This representation doesn't necessarily match the OCaml type definition.
Rust-types generator uses the information provided by bin_prot which is the over-the-wire representation of the encoded value. This representation doesn't necessarily match the OCaml type definition.
For example one particular case is
UInt64
, where the over-the-wire representation isInt64
:https://github.com/name-placeholder/mina/blob/9fe2662251a98d5329a03a469ce2abbe6da34541/src/lib/unsigned_extended/unsigned_extended.ml#L120-L122
Rust-types generator ends producing a type like the following:
Another instance of this issue is the compressed/uncompressed public keys, where the over-the-wire representation is always the compressed form: https://github.com/MinaProtocol/mina/blob/develop/src/lib/non_zero_curve_point/non_zero_curve_point.ml#L191-L193
We should keep track of every case like this (please include them in this issue), and provide some fix/workaround for the affected types.
The text was updated successfully, but these errors were encountered: