Skip to content

Add a certificate view command to decode certificates into human-readable form - #1488

Merged
palas merged 7 commits into
masterfrom
certificate-view
Oct 29, 2026
Merged

palas merged 7 commits into
masterfrom
certificate-view

Conversation

@palas

@palas palas commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Context

This PR addresses #1487.

Other than what says in the issue. This PR reuses the code that transaction view uses, and it completes and fixes it, in a slightly breaking way. For example, spelling "DRep" with the capital 'R' and removing a spurious space around "anchor".

One more thing is that the issue talks about using - to refer to stdin, this is standard in POSIX, but it is not the usual behaviour in cardano-cli, I've implemented that as a separate commit in the function readFileOrPipe in case we choose to skip that.

How to trust this PR

Most code is reused, and it has comprehensive golden tests. But make sure you agree with the changes made to the existing code.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff
  • Changelog fragment added in .changes/

@palas palas self-assigned this Oct 28, 2026
Copilot AI balanced review requested due to automatic review settings October 28, 2026 00:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@palas
palas requested a review from a team as a code owner October 28, 2026 17:08
Comment thread cardano-cli/src/Cardano/CLI/Read.hs Resolved

@Jimbo4350 Jimbo4350 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, couple of suggestions.

@palas
palas enabled auto-merge October 29, 2026 20:09
@palas
palas added this pull request to the merge queue Oct 29, 2026
Merged via the queue into master with commit eda1108 Oct 29, 2026
25 checks passed
@palas
palas deleted the certificate-view branch October 29, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] - Add a certificate view command to decode certificates into human-readable form

3 participants