Skip to content

Partially signed tx in wasm wrappers - #1970

Merged
ImplOfAnImpl merged 5 commits into
masterfrom
partially_signed_tx_in_wasm_wrappers
Sep 18, 2025
Merged

ImplOfAnImpl merged 5 commits into
masterfrom
partially_signed_tx_in_wasm_wrappers

Conversation

@ImplOfAnImpl

Copy link
Copy Markdown
Contributor
  1. wasm function encode_partially_signed_transaction was added (other added functions are encode_destination, which is needed to produce input destinations usable by encode_partially_signed_transaction, and decode_partially_signed_transaction_to_js, which is used for testing).
  2. PartiallySignedTransaction was moved to common.
  3. As discussed, PartiallySignedTransaction no longer contains token infos. This is because they are a temporary trezor-specific solution, which would have to be removed in the future anyway. And since we're beginning to expose PartiallySignedTransaction to other teams, now is the good time to do it.
    (To be clear, the token infos are still collected in the wallet and passed to trezor as before, they just aren't part of PartiallySignedTransaction anymore. The proper approach to passing token infos to trezor was described here).

Comment thread wasm-wrappers/src/lib.rs
///
/// The number of items in each list must be equal to the number of transaction inputs.
///
/// `additional_info` has the same meaning as in `encode_witness`.

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.

additional_info has the same meaning as described in encode_witness

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional_info has the same meaning as described in encode_witness

[discussed] "as described in encode_witness" sounds a bit off - "encode_witness" is a function, so the parameter cannot be "described in" it.
Leaving it as is.

@ImplOfAnImpl
ImplOfAnImpl merged commit c5924cd into master Sep 18, 2025
28 checks passed
@ImplOfAnImpl
ImplOfAnImpl deleted the partially_signed_tx_in_wasm_wrappers branch September 18, 2025 09:47
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.

2 participants