feat(identity): add sign and verify subcommands#63
Open
geekgonecrazy wants to merge 2 commits into
Open
Conversation
atomic identity sign reads bytes from stdin and outputs a JSON object with a base64 Ed25519 signature, the identity's base32 public key, the identity name, and alg field. --identity selects a non-default identity; omitting it uses whoami. atomic identity verify takes --signature <base64> and --public-key <base32>, reads bytes from stdin, and exits 0 (valid) or 1 (invalid).
vinceblock99
approved these changes
May 21, 2026
955fa57 to
cb8ad13
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
atomic identity sign [--identity <name>] < data— reads stdin, signs with the identity's Ed25519 key, outputs JSON withsignature(base64),public_key(base32),identityname, andalg: "ed25519"atomic identity verify --signature <base64> --public-key <base32> < data— exits 0 on valid, 1 on invalid--identityon sign defaults towhoami; both commands plug into the existingIdentityStore/KeyPair/PublicKeyprimitives with no new crypto codeTest plan
echo -n "hello" | atomic identity signproduces valid JSON with expected fields--identity <name>selects a non-default identity on sign