Transaction script compilation support#625
Merged
Conversation
523e9d0 to
a368353
Compare
This was
linked to
issues
Aug 1, 2025
Closed
b230f2d to
4815892
Compare
3ee8160 to
e6a7e82
Compare
e6a7e82 to
851770a
Compare
d350d3a to
56b69d6
Compare
bitwalker
reviewed
Aug 9, 2025
Collaborator
bitwalker
left a comment
There was a problem hiding this comment.
I know this is still in draft status, but figured I'd take a pass through early. No notes, aside from one about how we name the entrypoint for note and transaction scripts, but it isn't necessarily a blocker, just something that sticks out to me now.
aa73a28 to
e6807e5
Compare
to accommodate both note script and tx scripts.
needed for the transaction script.
`transaction-script` variants.
5872ba2 to
fb81ad5
Compare
Contributor
Author
|
@bitwalker It's ready for review. |
bitwalker
approved these changes
Aug 15, 2025
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.
Close #618
Close #621
Close #622
Corresponding templates repo PR - 0xMiden/rust-templates#18
This PR introduces transaction script compilation support.
Key Changes
cargo miden new --tx-scriptoption to generate a tx script project;project-kindunder[package.metadata.miden]in Cargo.toml to identify project kind (account, note script, tx script);run;arg: Wordparameter to both note and tx scripts entrypoint functions;test_basic_wallet_p2id_localtest against the local node instance with the scenario Faucet -> Alice -> Bob asset movement.basic-wallet-tx-scripttocargo miden examplecommand;See
basic-walled-tx-scriptatcompiler/examples/basic-wallet-tx-script/src/lib.rs
Lines 29 to 64 in 5872ba2
And the offchain code that calls it at
compiler/tests/integration-node/src/node_tests/helpers.rs
Lines 342 to 390 in 5872ba2
The updated
basic-walletRust code is atcompiler/examples/basic-wallet/src/lib.rs
Lines 29 to 49 in 5872ba2