ZcashFoundation / redjubjub

A minimal RedJubjub implementation for use in Zebra.
Other
28 stars 21 forks source link

Change `MsgVersion` to enum #112

Open oxarbitrage opened 3 years ago

oxarbitrage commented 3 years ago

In https://github.com/ZcashFoundation/redjubjub/pull/85 we added a MsgVersion struct that can be any u8 number. We might want to change this to an enum to be strict: https://github.com/ZcashFoundation/redjubjub/pull/85/files#r636471258

As commented in https://github.com/ZcashFoundation/redjubjub/pull/85/files#r642162509 the wire format will not change so it is not an urgent change, for this reason we isolated in this issue.