Skip to content
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

"Local State Query" mini-protocol CDDL #114

Open
scarmuega opened this issue Jun 10, 2022 · 2 comments
Open

"Local State Query" mini-protocol CDDL #114

scarmuega opened this issue Jun 10, 2022 · 2 comments
Labels
help wanted Extra attention is needed node-spec Related to upstream Cardano node

Comments

@scarmuega
Copy link
Member

Pallas aims to provide an implementation of each of the mini-protocols described in the Ouroboros network spec. We rely on the CDDL definitions to implement the CBOR wire-format required by each protocol.

Most of the wire-format is fully defined by the spec, except for certain messages which are specific to the ledger implementation. In particular, the "Local State Query" mini-protocol specification skips the definitions for the query and result messages.

We've tried reverse-engineering the Haskell code to infer the CBOR structures, but it's a hard and error-prone process. On top of that, each cardano-node version might potentially change / augment these definitions.

We need to build / acquire a CDDL document that describes the missing structures of the "Local State Query" mini-protocol to facilitate the development of the corresponding Pallas implementation.

@scarmuega scarmuega added help wanted Extra attention is needed node-spec Related to upstream Cardano node labels Jun 10, 2022
@scarmuega scarmuega changed the title Local State Query mini-protocol CDDL "Local State Query" mini-protocol CDDL Jun 10, 2022
@Titan-C
Copy link

Titan-C commented Jul 21, 2022

Hi, this has been precisely my work in recent time. I have such documentation on https://arsmagna.xyz/docs/network-lsq/
I'm happy to receive any feedback.

@scarmuega
Copy link
Member Author

@Titan-C this is great! it's exactly what I was looking for. Thank you for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed node-spec Related to upstream Cardano node
Projects
Status: No status
Development

No branches or pull requests

2 participants