-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize files #2880
Reorganize files #2880
Conversation
63d2504
to
9ba8855
Compare
signatures, | ||
) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we start thinking about having unit tests in the same source files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, do you want me to write them or move around? b/c this PR is just about moving around. I can create issues to write these unit tests.
As for the conversions above - I'm assuming that the e2e tests would catch any errors in the mappings and in the future it (the mapping) will go away entirely as we'll get rid of the Certificate
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
(Although I'm not looking forward to the merge conflict with #2881. 😩)
Motivation
certificate.rs
started to grow quite large, anddata_types.rs
was already huge (almost 1500 lines of code).Proposal
This PR moves code around and puts them into a common
certificate
module. Things that were done:certificate.rs
into a modulecertificate
with separate files for different certificate types (containing respective structs, impls and conversions)certificate/hashed.rs
and putHashed
struct there (with all of the accompanying code)Certificate
type (which is now an alias forGenericCertificate<ConfirmedValue>
) to thecertificate/mod.rs
(with a plan to remove it entirely when the time comes)CertificateValue
andHashedCertificateValue
tocertificate/value.rs
file.LiteCertificate
tocertificate/lite.rs
file.Test Plan
None, this is just moving code around.
Release Plan
Links