Skip to content

feat(wasm-solana): strengthen legacy transaction decoding - #462

Draft
OttoAllmendinger wants to merge 1 commit into
masterfrom
otto/ACD-348-legacy-transaction-decoding
Draft

OttoAllmendinger wants to merge 1 commit into
masterfrom
otto/ACD-348-legacy-transaction-decoding

Conversation

@OttoAllmendinger

@OttoAllmendinger OttoAllmendinger commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Strengthen the existing legacy Transaction.fromBytes path with packet,
    structure and encoding checks while retaining message and signature-slot bytes.
  • Expose the existing Rust parser and preserve requested account roles for
    unrecognized instructions without adding a parallel transaction API.
  • Add an independent synthetic web3.js native-payment reference with durable
    nonce, transfer, memo and compute-budget cases.

Validation

  • 58 Rust tests and one doc test; 110 package tests.
  • Clippy, ESLint, TypeScript compilation and scoped formatting checks.
  • A genuine synthetic WP/TAT native-payment export was checked locally: the
    transaction round-tripped and the derived message matched signableHex.
    The producer export is not included in this repository.
  • CI Build and Test currently fails before building: the workflow installs
    cargo-deny without a version pin, and cargo-deny 0.22.0 requires Rust
    1.95 while the workflow uses nightly-2025-10-23 (Rust 1.92). The workflow
    is unchanged by this PR.

Review scope

  • Transaction.fromBytes now rejects noncanonical or over-1232-byte legacy
    inputs across the API, not just for the native-payment profile. Review the
    compatibility implications and whether this is the appropriate boundary.
  • Resource-bound behavior, including nested decoding, needs review before
    this draft is considered ready.
  • Semantic parsing remains best effort. This does not establish Moneytalks
    profile admission, signature validity or chain execution. Other transaction
    classes have not been newly admitted by this change.

Refs: ACD-348

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

ACD-348

Retain exact legacy messages and existing signature slots while checking
transaction framing and preserving requested account roles for unknown
instructions. Expose the existing parser to Rust callers.

The legacy fromBytes API now rejects noncanonical or oversized inputs.
Semantic parsing remains best effort; Moneytalks admission and signature
verification are outside this change.

Refs: ACD-348
@OttoAllmendinger
OttoAllmendinger force-pushed the otto/ACD-348-legacy-transaction-decoding branch from e2b41b9 to 19a29ad Compare November 25, 2026 11:44

This branch has not been deployed

No deployments
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.

1 participant