Skip to content

Enforcement of DMQ message id format #3251

Closed

Description

@jpraynaud

Why

The message id of the DMQ message must follow a strict pattern that provides determinism and uniqueness. The Pallas librayr and the Mithril nodes must update the way they compute the message id. The pattern to be followed is based on the payload bytes to sign and must also be documented in the CIP-0137.

What

Update the computation of the DMQ message id and the CIP-0137.

How

  • Update DMQ message in Pallas library:
    • Move msg_id from DmqMsgPayload to DmqMsg
    • Update the computation of bytes to sign of DmqMsgPayload
    • Create a PR
    • Ask for review
    • Merge the PR
    • Create a backport PR
    • Ask for review
    • Merge the PR
    • Create a new version of pallas-network
  • Update the computation of the message id in Mithril nodes:
    • Use Blake2b::<U32> for the hash function (Blake2b_256)
    • Use DmqMsgPayload::bytes_to_sign
    • Add golden tests
    • Update pallas-network to newly released version
  • Update the DMQ node to a new pre-release:
    • Make sure the end to end test succeeds
  • Update the CIP-0137 with a section explaining:
    • That the message id format is enforced for security
    • Which format to use when creating a message id
    • Golden vectors to validate implementations
    • Create a PR
    • Ask for review
    • Merge the PR

Metadata

Metadata

Assignees

Labels

feature 🚀

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions