Skip to content

Embed strkey CLI command for encoding and decoding address strings#2324

Merged
leighmcculloch merged 5 commits into
mainfrom
update-stellar-strkey-add-cli-feature
Dec 11, 2025
Merged

Embed strkey CLI command for encoding and decoding address strings#2324
leighmcculloch merged 5 commits into
mainfrom
update-stellar-strkey-add-cli-feature

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

@leighmcculloch leighmcculloch commented Dec 11, 2025

What

Upgrade stellar-strkey from 0.0.13 to 0.0.15, enable the cli feature, and add a new strkey subcommand to the CLI.

Why

Expose strkey encoding and decoding functionality directly in the CLI, matching the existing pattern used for XDR. For advanced use cases it is helpful to be able to extract components out of addresses. The use cases this is most relevant is cross-chain protocols who prefer to work with the raw payloads within the addresses.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new strkey subcommand to the Stellar CLI by upgrading the stellar-strkey dependency from version 0.0.13 to 0.0.15 and enabling its CLI feature. The implementation follows the existing pattern used for the xdr command, exposing strkey encoding and decoding functionality directly in the CLI for advanced use cases where users need to extract components from Stellar address strings.

Key Changes

  • Upgraded stellar-strkey from 0.0.13 to 0.0.15 in workspace dependencies
  • Enabled the "cli" feature for stellar-strkey dependency in soroban-cli
  • Integrated strkey CLI command as a top-level subcommand alongside existing commands like xdr, contract, keys, etc.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Cargo.toml Updates stellar-strkey version from 0.0.13 to 0.0.15 in workspace dependencies
cmd/soroban-cli/Cargo.toml Enables the "cli" feature for stellar-strkey dependency
cmd/soroban-cli/src/commands/mod.rs Adds Strkey enum variant to Cmd, integrates strkey.run() in match statement, and adds Strkey error variant to Error enum

Comment thread cmd/soroban-cli/src/commands/mod.rs
@leighmcculloch leighmcculloch marked this pull request as ready for review December 11, 2025 03:50
@leighmcculloch leighmcculloch merged commit 2c263af into main Dec 11, 2025
29 of 30 checks passed
@leighmcculloch leighmcculloch deleted the update-stellar-strkey-add-cli-feature branch December 11, 2025 03:50
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Dec 11, 2025
elizabethengelman pushed a commit that referenced this pull request Dec 12, 2025
…2324)

### What
Upgrade stellar-strkey from 0.0.13 to 0.0.15, enable the cli feature,
and add a new `strkey` subcommand to the CLI.

### Why
Expose strkey encoding and decoding functionality directly in the CLI,
matching the existing pattern used for XDR. For advanced use cases it is
helpful to be able to extract components out of addresses. The use cases
this is most relevant is cross-chain protocols who prefer to work with
the raw payloads within the addresses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants