The existing OpaquePerasCert implementation for certificates that go into blocks uses runtime reification to dynamically dispatch the conversion routine of the different known certificate types (currently only V1.PerasCert being supported).
With proper HFC dispatch in place, this is no longer necessary and the input can be replaced with an era-indexed certificate (or a HardForkCert if that doesn't lead to cyclical imports), and allowing error-less conversions.
The existing
OpaquePerasCertimplementation for certificates that go into blocks uses runtime reification to dynamically dispatch the conversion routine of the different known certificate types (currently onlyV1.PerasCertbeing supported).With proper HFC dispatch in place, this is no longer necessary and the input can be replaced with an era-indexed certificate (or a
HardForkCertif that doesn't lead to cyclical imports), and allowing error-less conversions.