Skip to content

N2c local submission mini-protocol rejection structured reason #11

@jpraynaud

Description

@jpraynaud

When submitting a message on the n2c local submission mini-protocol, if an error occurs (KES signature is invalid, already expired message, ...) it is reported to the client. Today, the error is a type and optionally an error message in text. We would like to create more structured optional explanation of the errors. This would require modifications of the CIP, Pallas library, Mithril nodes.

Current CDDL:

reason = invalid
       / alreadyReceived
       / expired
       / other
 
invalid         = [0, tstr]
alreadyReceived = [1]
expired         = [2]
other           = [3, tstr]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions