Mwixnet wallet support - #783
Open
wiesche89 wants to merge 6 commits into
Open
Conversation
ardocrat
reviewed
Aug 6, 2026
| } | ||
| } | ||
|
|
||
| pub fn mwixnet<L, C, K>( |
Contributor
There was a problem hiding this comment.
question about usability, so user should create send request, extract commitment somehow and provide id to wallet, can we use this command on send to automate commitment getting
Author
There was a problem hiding this comment.
mwixnet swaps an existing UTXO, so reusing send would create an unnecessary Slate transaction. I can instead make the commitment optional and select an eligible output by amount or max, while keeping explicit selection available.
ardocrat
reviewed
Aug 6, 2026
| Rejected(String), | ||
| } | ||
|
|
||
| fn parse_mwixnet_response(response: &str) -> Result<MwixnetResponse, Error> { |
Contributor
There was a problem hiding this comment.
can we move mwixnet related parsing to mwixnet file, it can be useful to use them at owner rpc api for example, same related to tests below
ardocrat
reviewed
Aug 6, 2026
| use onion::{new_stream_cipher, Onion, OnionError, Payload, RawBytes}; | ||
|
|
||
| /// Maximum number of servers in an mwixnet route. | ||
| pub const MAX_MWIXNET_HOPS: usize = 16; |
Contributor
There was a problem hiding this comment.
Why such limit is important?
wiesche89
force-pushed
the
mwixnet_wallet_support
branch
from
August 8, 2026 20:13
644017d to
e18a052
Compare
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.
Summary
Adds Owner API support for creating signed mwixnet swap requests from wallet outputs.
related PR mimblewimble/mwixnet#34
Adds an experimental mwixnet wallet command that creates and submits a swap request to the first mwixnet server over Arti.
Also fixes the shared Arti HTTP POST implementation by sending the correct request target and JSON headers and handling HTTP error responses.
The command:
Tests
Adds tests for request creation and locking, JSON-RPC responses, transaction IDs, and Arti HTTP request formatting.
Testing
Select an unspent output:
./target/release/grin-wallet --testnet outputs
Submit it to mwixnet:
./target/release/grin-wallet --testnet mwixnet
<OUTPUT_COMMITMENT>
--server mza3u6vkqodqc6kjjapfbcjrg7hgpkuw6nyq5xvfjqp5jm2lfeaocwqd.onion
--fee_per_hop 12500000
--key ba2ee29d1e44227e3d78d1abbc7d86a9321ae24fb3656b545b001907a008bc4e
--key a6920c1ef8bd8bb14fe4940521eca294f797856baaa307eb51894dda157b1477