Skip to content

Widen wallet signature algorithms to what the platform can verify - #130

Merged
brettheap merged 1 commit into
mainfrom
widen-wallet-signature-algorithms
Aug 8, 2026
Merged

brettheap merged 1 commit into
mainfrom
widen-wallet-signature-algorithms

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The defect

openxwallet-record.schema.yaml closed signature_algorithm over curve
algorithms only (ed25519, ecdsa-p256, ecdsa-secp256k1). The family's
first enforcement surface — LedgerxFactory's ratified posting
segregation-of-duties control, enforced in the Business Central
extension — verifies proof-of-possession with the platform's own crypto,
and BC 28.3 AL exposes exactly RSA, DSA and RSASSA-PSS (enum 1446
SignatureAlgorithm; a full-source grep of the 28.3 System Application
symbols for ecdsa|ed25519|ellipticcurve returns nothing).

The intersection of the schema and the platform was empty: no
conformant wallet could carry a key the enforcing surface can verify
locally. The alternative — an off-platform verifier in the posting
path — reintroduces the network dependency the consumer's
local-permission-decision rule exists to remove.

This is the #116/#120 shape: a defect found by the first consumer,
fixed neutrally rather than worked around locally.

The fix (additive, minor)

  • rsa-2048-sha256 and rsa-3072-sha256 added to the enum, defined in
    the schema description as RSASSA-PKCS1-v1_5 over the named digest —
    what CryptographyManagement.VerifyData implements — with the
    measurement recorded so the widening is attributable to evidence, not
    preference.
  • One positive example (wallet-agent-rsa-platform-verifiable), corpus
    now 17 positives + 33 negatives, self-test green, 11/11 requirements.
  • Manifest digest refreshed with the amendment noted in
    consumption_rule; CHANGELOG entry under Unreleased (folds into the
    next bundle cut per the versioning policy — no version minted here).

Bar

  • python3 scripts/validate-openxwallet.py — 0 errors, 0 warnings
  • python3 scripts/validate-openxwallet.py --strict on the packaged corpus — green
  • python3 scripts/validate-manifest-digests.py — 132/132 verify
  • contract-v1.31 release inventory untouched (tag-addressed; verified content is the tag's, not the working tree's)

Consumer follow-up (LedgerxFactory, not this PR)

After merge: re-pin stack.yaml to the merged commit and move the two
suspended wallet records from ed25519 to rsa-2048-sha256 before the
live window mints keys.

🤖 Generated with Claude Code

The signature_algorithm enum was curve-only (ed25519, ecdsa-p256,
ecdsa-secp256k1). The family's first enforcement surface — the
LedgerxFactory posting segregation-of-duties control in the Business
Central extension — verifies proofs with the platform's own crypto, and
BC 28.3 AL exposes exactly RSA, DSA and RSASSA-PSS: no ed25519, no
ECDSA (measured against the 28.3 System Application symbols,
enum 1446 SignatureAlgorithm; a full-source grep for
ecdsa|ed25519|ellipticcurve returns nothing). The intersection of the
schema and the platform was empty, which forces verification
off-platform — against the very local-decision rule the consumer's
control is built on.

Additive: rsa-2048-sha256 and rsa-3072-sha256 (RSASSA-PKCS1-v1_5 over
the named digest — what CryptographyManagement.VerifyData implements),
with the measurement recorded in the schema description. Existing
records remain conformant. One positive example added (corpus 17+33,
self-test green); manifest digest refreshed with the amendment noted;
CHANGELOG Unreleased entry pending the next bundle cut.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 8, 2026 12:57

@sourcery-ai sourcery-ai 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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI 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.

Pull request overview

This PR updates the openxWallet contract artifacts to allow wallet records to declare RSA-based signature algorithms that the first consuming enforcement surface (Business Central AL) can verify locally, and documents/records the resulting additive contract change.

Changes:

  • Widen signature_algorithm in openxwallet-record.schema.yaml to include rsa-2048-sha256 and rsa-3072-sha256.
  • Add a new positive wallet example demonstrating an RSA platform-verifiable key reference.
  • Refresh the manifest digest entry and add an Unreleased changelog entry describing the additive widening.

Reviewed changes

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

File Description
contracts/openxwallet/openxwallet-record.schema.yaml Widen signature_algorithm enum to include RSA SHA-256 variants and document rationale.
contracts/openxwallet/examples/wallet-agent-rsa-platform-verifiable.example.yaml Add a positive example wallet record using rsa-2048-sha256.
contracts/manifest.yaml Update the schema’s recorded sha256 and annotate the digest refresh in consumption_rule.
contracts/CHANGELOG.md Record the additive enum widening under Unreleased.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 96 to +98
type: string
enum: [ed25519, ecdsa-p256, ecdsa-secp256k1]
enum: [ed25519, ecdsa-p256, ecdsa-secp256k1,
rsa-2048-sha256, rsa-3072-sha256]
@brettheap
brettheap merged commit 39539fd into main Aug 8, 2026
1 check passed
@brettheap
brettheap deleted the widen-wallet-signature-algorithms branch September 4, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants