[LUR-33] Refactor common behavior between Nova/Supernova in public_parameters
caching
#1086
Labels
help wanted
Extra attention is needed
public_parameters
caching
#1086
The logic for reading to/from cache in #1085 shows a lot of duplicated logic between supernova and nova. One of the issues of this definition is that the UX of the code isn't ideal, witness the uneven usage of logging and use of
tap
.We want to relate two sets of three types:
and basically execute the same read-from-cache-and-extract or generate logic on each of those two pairs, returning a final type that's either a
lurk::proof::nova::PublicParams
orlurk::proof::supernova::PublicParams
in the end. This seems to be a job for a trait with two associated types, which we could use to make the processing of this file more systematic.LUR-33
The text was updated successfully, but these errors were encountered: