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
don't need extra "dynamic" state fields like is_padded and length_after_padding, you can just call blob.len() and blobPadded.len()
much cleaner API with explicit rust-like conversions between them (from/into/try_into/etc)
don't need to throw dynamic errors for things that could easily be caught at compile time, like to_polynomial which would only be implemented on BlobPadded.
The Blob struct is written in a very dynamic-typed way, and doesn't make good use of rust's type system.
It would be cleaner to separate it into
Benefits:
blob.len()
andblobPadded.len()
BlobPadded
.The text was updated successfully, but these errors were encountered: