Skip to content

docs(guides): Composing UTXOs guide in all four languages - #15

Merged
erubboli merged 1 commit into
mainfrom
feat/docs-updates
Oct 5, 2026
Merged

erubboli merged 1 commit into
mainfrom
feat/docs-updates

Conversation

@erubboli

@erubboli erubboli commented Oct 5, 2026

Copy link
Copy Markdown
Member

Restores the spend-and-recreate order-update guide across Go, Python, JavaScript, and Rust, with the consensus note expanded to the full allowed/forbidden list (verified against the tx verifier in mintlayer-core):

Allowed in one transaction — exactly one order operation input (slot shared with token account commands) and one CreateOrder output; conclude+recreate sits exactly at both limits.

Forbidden (verifier errors) — MultipleAccountCommands, MultipleOrdersCreated, spending a CreateOrder output as a UTXO input (InvalidInputTypeInTx), creating an order with no UTXO input (NoUtxoInputsForOrderIdCreation — the id derives from the first UTXO outpoint).

  • go + python: note extended; Sign-it sections now show the per-input 0x00/0x01+output input-UTXOs byte format for encode_witness.
  • javascript (new page): first raw @mintlayer/wasm-lib encoder walkthrough on the site (await initWasm(), encode_input_for_conclude_order, TxAdditionalInfo with order balances, MintlayerApiProvider for reads/broadcast, get_order_id).
  • rust (new page): native crypto module flow; gated with an unreleased-SDK note on the order-signing re-exports (crypto: re-export order signing types, make parse_addressable public rust-sdk#5). Full snippet compile-checked against that branch.
  • cross-links from trading-with-orders in both new languages + guides index row/sentence updates; build clean (no broken links/anchors).

Restore the spend-and-recreate order-update guide and expand the
consensus note into a full allowed/forbidden list (exactly one order
operation input and one CreateOrder output per transaction; a second
command input or order output, spending a CreateOrder output as a UTXO
input, and creating an order without a UTXO input are all rejected).

- go + python: extend the note, document the 0x00/0x01 input-UTXOs
  byte format passed to encode_witness
- javascript: new guide using the raw wasm-lib encoders plus
  MintlayerApiProvider for reads
- rust: new guide using the native crypto module (gated on the
  order-signing re-exports in rust-sdk#5)
- cross-links from both trading-with-orders guides and the guides index
@erubboli
erubboli merged commit 6639334 into main Oct 5, 2026
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