Repository navigation
Widen wallet signature algorithms to what the platform can verify - #130
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
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_algorithminopenxwallet-record.schema.yamlto includersa-2048-sha256andrsa-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] |
4 tasks
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.
The defect
openxwallet-record.schema.yamlclosedsignature_algorithmover curvealgorithms only (
ed25519,ecdsa-p256,ecdsa-secp256k1). The family'sfirst 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 Applicationsymbols for
ecdsa|ed25519|ellipticcurvereturns 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-sha256andrsa-3072-sha256added to the enum, defined inthe schema description as RSASSA-PKCS1-v1_5 over the named digest —
what
CryptographyManagement.VerifyDataimplements — with themeasurement recorded so the widening is attributable to evidence, not
preference.
wallet-agent-rsa-platform-verifiable), corpusnow 17 positives + 33 negatives, self-test green, 11/11 requirements.
consumption_rule; CHANGELOG entry under Unreleased (folds into thenext bundle cut per the versioning policy — no version minted here).
Bar
python3 scripts/validate-openxwallet.py— 0 errors, 0 warningspython3 scripts/validate-openxwallet.py --stricton the packaged corpus — greenpython3 scripts/validate-manifest-digests.py— 132/132 verifycontract-v1.31release 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.yamlto the merged commit and move the twosuspended wallet records from
ed25519torsa-2048-sha256before thelive window mints keys.
🤖 Generated with Claude Code