Skip to content

Update stellar-strkey to 0.0.18 - #2614

Merged
leighmcculloch merged 11 commits into
mainfrom
update-stellar-strkey-0-0-17
Sep 24, 2026
Merged

leighmcculloch merged 11 commits into
mainfrom
update-stellar-strkey-0-0-17

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

leighmcculloch and others added 4 commits June 17, 2026 05:32
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XiSfu2MM5xbdGjxj7oXys8
0.0.18 includes the strkey CLI fix (accept owned variant keys for
Decoded<Strkey>). It is not yet on crates.io, so temporarily patch
stellar-strkey to the release/v0.0.18 branch to validate ahead of the
release. Remove the patch once 0.0.18 is published.
@leighmcculloch leighmcculloch changed the title Update stellar-strkey to 0.0.17 Update stellar-strkey to 0.0.18 Jun 17, 2026
0.0.18 is now published to crates.io, so drop the temporary
[patch.crates-io] that pointed stellar-strkey at the release/v0.0.18 git
branch (and the matching stellar-cli deny.toml allow-git entry). The
dependency now resolves from crates.io.
@leighmcculloch
leighmcculloch marked this pull request as ready for review June 18, 2026 04:06
Copilot AI lite review requested due to automatic review settings June 18, 2026 04:06

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.

✅ Ready to approve

The dependency bump is consistently applied, required call sites/tests are updated for the new redaction/stdin behaviors, and no correctness issues were identified in the changed regions.

Note: this review does not count toward required approvals for merging.

Pull request overview

Bumps the workspace stellar-strkey dependency to 0.0.18 (Protocol 28 line) and updates the CLI/spec tooling glue code and tests to match upstream API/CLI behavior changes (more specific decode errors, secret redaction via Unredacted, and strkey encode/decode reading from stdin).

Changes:

  • Update workspace dependency to stellar-strkey = 0.0.18 (and refresh Cargo.lock for new transitive graph).
  • Adjust hex-fallback contract ID parsing to map failures to DecodeError::InvalidPayloadLength.
  • Update secret-key printing/serialization and tests to use .as_unredacted(), and update strkey integration tests to pass input via stdin.
File summaries
File Description
cmd/soroban-cli/src/utils.rs Updates contract ID hex-fallback error mapping for new stellar-strkey decode error variants.
cmd/soroban-cli/src/config/secret.rs Ensures secret-key serialization and assertions use unredacted formatting.
cmd/soroban-cli/src/config/key.rs Updates key round-trip test to serialize secret keys using .as_unredacted().
cmd/soroban-cli/src/commands/network/root_account/secret.rs Prints root account secret key using .as_unredacted() to avoid redaction.
cmd/soroban-cli/src/commands/keys/secret.rs Prints identity secret key using .as_unredacted() to avoid redaction.
cmd/crates/soroban-test/tests/it/strkey.rs Updates strkey encode/decode integration tests to provide input via stdin (no positional input).
cmd/crates/soroban-test/src/lib.rs Updates test helper output to use .as_unredacted() for secret key display.
cmd/crates/soroban-spec-tools/src/utils.rs Mirrors CLI contract ID parsing error mapping changes in shared spec tools.
Cargo.toml Bumps workspace stellar-strkey dependency to 0.0.18.
Cargo.lock Records new stellar-strkey 0.0.18 node and transitive dependency updates (incl. additional heapless version).

Copilot's findings

  • Files reviewed: 9/10 changed files
  • Comments generated: 0

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d20a12a9af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.toml
stellar-strkey 0.0.18's embedded encode/decode commands read their input
from stdin instead of a positional argument, so the generated
FULL_HELP_DOCS.md entries for `stellar strkey decode/encode` were stale.
Regenerated the strkey section to match (stdin input, new --quiet option).
Copilot AI review requested due to automatic review settings September 24, 2026 10:20

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 review overview

🟢 Approval recommended

The only noted issue is a non-blocking dependency-version pinning nit.

Review effort: Lite
Findings: 1 Low severity

Open (1)

Comment thread Cargo.toml
Copilot AI review requested due to automatic review settings September 24, 2026 20:43

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 review overview

🔵 Needs a closer look

Pin the workspace dependency explicitly to =0.0.18 in Cargo.toml.

Review effort: Lite
Findings: None

Resolved since last review (1)

@leighmcculloch
leighmcculloch merged commit c4cc455 into main Sep 24, 2026
204 of 244 checks passed
@leighmcculloch
leighmcculloch deleted the update-stellar-strkey-0-0-17 branch September 24, 2026 21:09
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Sep 24, 2026
sisuresh pushed a commit to sisuresh/rs-soroban-env that referenced this pull request Sep 25, 2026
> [!NOTE]
> Updating the lib across the stack:
> - stellar/rs-stellar-xdr#547
> - stellar#1694
> - stellar/rs-soroban-sdk#1913
> - stellar/rs-stellar-rpc-client#99
> - stellar/stellar-cli#2614

### What

Bump the workspace `stellar-strkey` dependency to `=0.0.18`.

### Why

This adopts the latest `stellar-strkey` release.

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
leighmcculloch added a commit to leighmcculloch/rs-soroban-sdk that referenced this pull request Sep 25, 2026
> [!NOTE]
> Updating the lib across the stack:
> - stellar/rs-stellar-xdr#547
> - stellar/rs-soroban-env#1694
> - stellar#1913
> - stellar/rs-stellar-rpc-client#99
> - stellar/stellar-cli#2614

### What

Bump the workspace `stellar-strkey` dependency to `=0.0.18`.

### Why

This adopts the latest `stellar-strkey` release.

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
fnando added a commit that referenced this pull request Sep 25, 2026
leighmcculloch added a commit that referenced this pull request Sep 26, 2026
### What

Wrap the embedded strkey CLI so that `stellar strkey decode` and
`stellar strkey encode` accept their input as an argument again, falling
back to stdin when it is omitted.

### Why

Updating stellar-strkey to 0.0.18 in #2614 made the embedded CLI read
that input only from stdin, which breaks existing scripts that run
`stellar strkey decode <STRKEY>` or `stellar strkey encode <JSON>`.

### Known limitations

The argument path copies the embedded CLI's decode and encode logic,
with a test checking that both paths stay in sync, until the wrapper is
deleted at the next major version (v29/30).
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