Repository navigation
π (signer-solana) [DSDK-1611]: Fix stale comments in the clear-sign code - #1991
Open
fAnselmi-Ledger wants to merge 2 commits into
Open
fAnselmi-Ledger wants to merge 2 commits into
fAnselmi-Ledger wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
fAnselmi-Ledger
added this pull request to stack #1985
October 14, 2026 09:11
fAnselmi-Ledger
marked this pull request as ready for review
October 14, 2026 09:14
Contributor
There was a problem hiding this comment.
π’ Approval recommended
The documentation-only updates accurately reflect the inspected implementation and introduce no unresolved issues.
0 open findings
What changed in this PR
Updates stale Solana clear-sign documentation and test titles without changing runtime behavior.
Changes:
- Corrects descriptor provisioning, ALT resolution, and decoder documentation.
- Clarifies clear-sign modes and basic provisioning behavior.
- Replaces outdated βarmedβ terminology with βprovisioned.β
| File | Description |
|---|---|
.changeset/βrumbling-red-keys.md |
Adds the signer-solana patch changeset. |
ProvideGenericClearSignContextTask.ts |
Corrects fatal-failure behavior documentation. |
provideTokenAccountStateContext.ts |
Names the actual caller. |
loadCertificate.ts |
Clarifies optional-certificate handling. |
BuildGenericClearSignContextTask.ts |
Corrects ALT mint and mode documentation. |
SignTransactionDeviceAction.test.ts |
Updates terminology in test titles and comments. |
ProvisionBasicClearSignDeviceAction.ts |
Corrects the provisioning workflow description. |
valueResolution.ts |
Documents out-of-range lookup behavior. |
altResolutionRule.ts |
Removes changelog-style wording. |
model.ts |
Corrects ALT-backed mint behavior documentation. |
buildRequirements.ts |
Corrects mint requirement comments. |
buildRequirements.test.ts |
Updates the corresponding test comment. |
TypePoolDecoder.ts |
Corrects unread-payload behavior documentation. |
poolFromJson.ts |
Documents thrown decoder errors and conversion. |
parsePool.ts |
Corrects the functionβs throw contract. |
SignTransactionDeviceActionTypes.ts |
Notes that srfc39-only is not currently produced. |
π§ Review effort: Balanced
π‘ Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
fAnselmi-Ledger
force-pushed
the
refactor/dsdk-1611-fix-stale-comments
branch
from
October 14, 2026 13:08
4d12ca5 to
0c395dd
Compare
|
This branch was successfully deployed
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.



π Description
Fixes stale and misleading comments in the
signer-solanaclear-sign code. Comments and test titles only: no code changes. Stacked on #1990.Wrong claim about the device
buildRequirements.ts,model.tsand abuildRequirementstest) said the device "signals 0x6d10" for ALT-backed mints and "requires TOKEN_INFO immediately after". In app-solana,0x6d10isApduReplySolanaInvalidAltResolution("Invalid ALT resolution descriptor").handle_provide_alt_resolution.creturns it only to reject an ALT_RESOLUTION descriptor: bad TLV, wrong version, challenge mismatch, failed signature, or a full or duplicate ALT cache. It is never a request for TOKEN_INFO, and the host never reacts to it.Docs that described the code wrongly
provideDescriptor: fatal failures abort by returning the failed result, not "by throwing". A test already asserts thatrun()does not reject.loadCertificateIfPresent: not every provider needs this gate. TOKEN skips its whole descriptor without a certificate, and callsloadCertificatedirectly.provideTokenAccountStateContext: the caller isProvideGenericClearSignContextTask, not a "stream task".poolFromJson/parsePool: both said "@throws never" but do throwTypePoolDecoderThrow. ForpoolFromJson, the doc now says thatbuildRequirements' catch-all turns the throw into aRequirementsDecodeError.TypePoolDecoder: nothing checkscursorEnd, so the comment no longer says the "cursor-end check" catches unread bytes.accountAltRefAt: "exactly one of the two answers" holds only for an in-range slot. Both areundefinedout of range.altResolutionRule: drops a changelog-style "now".Old vocabulary
srfc39-onlyis never produced. BuildGeneric'smodedoc says so, and the publicClearSignModeJSDoc gets "(not produced today)". The type itself is unchanged.SignTransactionDeviceAction.test.ts: four "armed" / "alreadyArmed" test titles and two test comments now say "provisioned", and the header no longer mentions a "(delayed) terminal-sign machine". Only titles and comments change; no assertion is touched.Left alone on purpose
[SigningOps]log prefix: changing it would change a log.β Context
0x6d10is missing from the signer'sSOLANA_APP_ERRORS, so the host reports it as an unknown device error. Adding it changes error behaviour, so it belongs in its own ticket.β Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
patchfor@ledgerhq/device-signer-kit-solanatsc,vitestand Prettier are green onsigner-solana.π§ Checklist for the PR Reviewers
π€ Generated with Claude Code