Skip to content

Protocol 30 (CAP-0087) - #318

Merged
sisuresh merged 1 commit into
stellar:mainfrom
sisuresh:p30-cap-0087
Sep 18, 2026
Merged

sisuresh merged 1 commit into
stellar:mainfrom
sisuresh:p30-cap-0087

Conversation

@sisuresh

Copy link
Copy Markdown
Contributor

Changes

  • Add nine ContractCostType entries (86–94) for ML-DSA-44/65/87 verifying-key decode, signature decode, and signature verification, gated behind #ifdef CAP_0087_ML_DSA.
  • Feature-off preprocessing is byte-identical to today's enum; the guard carries the separating comma, following the CAP_0084_MUXED_CONTRACT arm in SCAddressType.

Downstream: rs-stellar-xdr, then rs-soroban-env / go-stellar-sdk / js-stellar-base / js-stellar-sdk / js-stellar-xdr-json pin this PR's head SHA.

Nine new ContractCostType entries (86-94) covering verifying-key decode,
signature decode, and verification for ML-DSA-44/65/87, gated behind
CAP_0087_ML_DSA.
@jayz22
jayz22 marked this pull request as ready for review September 18, 2026 19:13
Copilot AI balanced review requested due to automatic review settings September 18, 2026 19:13

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.

🟢 Approval recommended

The guarded enum additions match CAP-0087 and preserve the existing feature-off definition.

Pull request overview

Adds CAP-0087 ML-DSA metering definitions while preserving feature-off compatibility.

Changes:

  • Adds nine ML-DSA cost types numbered 86–94.
  • Gates additions behind CAP_0087_ML_DSA.
File summaries
File Description
Stellar-contract-config-setting.x Extends ContractCostType with guarded ML-DSA costs.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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

@sisuresh sisuresh changed the title SPIKE: Protocol 30 (CAP-0087) Protocol 30 (CAP-0087) Sep 18, 2026
@sisuresh
sisuresh merged commit ee040cd into stellar:main Sep 18, 2026
6 checks passed
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.

3 participants