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

Offline signature verification subcommand #12

Open
henrywang8atfbdotcom opened this issue Oct 21, 2024 · 3 comments
Open

Offline signature verification subcommand #12

henrywang8atfbdotcom opened this issue Oct 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@henrywang8atfbdotcom
Copy link

Are there any plans to extend the CLI with a subcommand that verifies a pre-obtained SignatureResponse (either input as JSON or its constituents). Such that the flow would be completely offline.

cli verify \
--version 1 \
--namespace ns \
--epoch 1 \
--digest abc \
--signature bcd \ 
@thibmeu
Copy link
Collaborator

thibmeu commented Oct 22, 2024

this would be a good addition. I think the cli should rather be consuming the signature from stdin or a path, allowing chaining with curl for instance, or a json output should this be done at some point.

curl 'https://plexi.key-transparency.cloudflare.com/namespaces/{namespace}/audits/{epoch}' | plexi verify --publickey '<hex>'

@thibmeu thibmeu added the enhancement New feature or request label Oct 22, 2024
@henrywang8atfbdotcom
Copy link
Author

henrywang8atfbdotcom commented Oct 22, 2024

That would be great! Right, stdin or json input file would be more practical than passing in the constituents.

@henrywang8atfbdotcom
Copy link
Author

Do you think we can get this feature in the next version upgrade, whenever that is? Just wanted to avoid keeping internal patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants