Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Direct CBOR serialisation instance for UpdateProposal
Previously we serialised UpdateProposal to CBOR using the underlying CBOR instance for the Shelley.Update type. We can no longer do this because our strategy in the API for the protocol params is to use a single representation across all eras, rather than an era-dependent representation. This means that no single era from the underlying ledger can represent all the protocol params. Thus for serialisation we need a direct instance, rather than going via the ledger types. This requires To/FromCBOR instances for ProtocolParametersUpdate, which entail To/FromCBOR instances for a few other types. Co-authored-by: John Ky <john.ky@iohk.io>
- Loading branch information
Showing
3 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters