I'm trying to create something which involves messing with (unsigned) transaction data, using the Rust library monero-rs. All I need to do is import an unsigned transaction, access the contents, then export the modified unsigned transaction.
However, this library does not appear to have any support for importing unsigned transactions, which does make sense given that it does not have signing capabilities.
Is there any way to do this? Preferably I'd like to stay in Rust. Importing a signed transaction, modifying it, then exporting the new one would also be acceptable, but I can't find a way to make any wallet "re-sign" an already signed transaction. Any other ideas? Or if it's necessary to implement this from scratch, is there any documentation available on how unsigned transactions are encoded?
Before you say this is a stupid idea and not the intended way of creating transactions, I know, and I will be doing all experiments on stagenet. And yes, I'm also aware that manipulating transaction data will often result in corrupting the outputs and making funds inaccessible.