Expose useUpgradedAuth simulation flag for CAP-71 v2 auth credentials
@fnando is already working on this.
Since Aug 25, 2026.
Assessment
This issue has not been assessed yet.
Description
Background
CAP-71 v2 introduces SOROBAN_CREDENTIALS_ADDRESS_V2 auth credentials, which use a different signature preimage (ENVELOPE_TYPE_SOROBAN_AUTHORIZATION_WITH_ADDRESS, binding the credential address into the signed payload) than the legacy v1 ADDRESS credentials.
simulateTransaction takes an optional useUpgradedAuth request flag: when set, recording-mode simulation returns v2 (ADDRESS_V2) credentials instead of v1. See rs-stellar-rpc-client#112 for the full context and migration timeline.
Current state in stellar-cli
The signing side is already done — cmd/soroban-cli/src/signer/mod.rs branches on the credential arm and uses the correct preimage per arm:
Address(v1) →HashIdPreimage::SorobanAuthorizationAddressV2(v2) →HashIdPreimage::SorobanAuthorizationWithAddressAddressWithDelegates→ skipped with a warning (not supported yet)SourceAccount→ left as-is
Both v1 and v2 signing paths have unit tests.
What's missing
The useUpgradedAuth flag is not yet exposed by our stellar-rpc-client dependency (main currently only sends authMode). Once rs-stellar-rpc-client#112 lands and exposes the flag:
- Plumb
useUpgradedAuththroughassembled.rs(simulate_transaction_envelopecall). - Expose it as a CLI option (opt-in), defaulting to off until it makes sense to flip.
- Consider flipping the CLI's client default to request upgraded auth.
- Add integration coverage exercising the v2 credential round-trip against a live network.
Timeline / priority
Not p28-blocking. Per the CAP-71 migration plan, the RPC server keeps returning v1 by default until p29 (server flips its default) and disables the flag at p30. Since the CLI doesn't request upgraded auth today, it receives v1 and signs it correctly. This is an additive, opt-in enhancement to complete before p29.
Blocked by: stellar/rs-stellar-rpc-client#112
- Dominant language
- Rust
- Stars
- 123
- Forks
- 141
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 17
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/stellar-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stellar/stellar-cli#2384 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
stellar/stellar-cli#2347 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
stellar/stellar-cli#2723 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
stellar/stellar-cli#2722 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
stellar/stellar-cli#2703 ·
All issues in stellar/stellar-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100