Repository navigation
docs(guides): Composing UTXOs guide in all four languages - #15
Merged
Merged
Conversation
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
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.
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
CreateOrderoutput; conclude+recreate sits exactly at both limits.Forbidden (verifier errors) —
MultipleAccountCommands,MultipleOrdersCreated, spending aCreateOrderoutput as a UTXO input (InvalidInputTypeInTx), creating an order with no UTXO input (NoUtxoInputsForOrderIdCreation— the id derives from the first UTXO outpoint).0x00/0x01+outputinput-UTXOs byte format forencode_witness.@mintlayer/wasm-libencoder walkthrough on the site (await initWasm(),encode_input_for_conclude_order,TxAdditionalInfowith order balances,MintlayerApiProviderfor reads/broadcast,get_order_id).cryptomodule 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.trading-with-ordersin both new languages + guides index row/sentence updates; build clean (no broken links/anchors).