build Pre Image Hash With Signing Input
fun buildPreImageHashWithSigningInput(tx: Transaction, from: String, nonce: BigInteger, fee: Fee): Result<PreImageHashResult>
Build a preImageHash for a transaction, returning both the PreSigningOutput and the original SigningInput bytes.
This method is used internally for MPC signing where we need:
PreSigningOutput.data_hash: 32-byte hash to be signed by MPC
Original SigningInput bytes: needed for compileWithSignatures (NOT PreSigningOutput.data)
Important: WalletCore's compileWithSignatures expects the original SigningInput protobuf bytes, NOT the PreSigningOutput.data field (which contains RLP-encoded tx).
Return
Result containing PreImageHashResult with both values, or an error
Parameters
tx
The transaction to build
from
The sender's address
nonce
The sender's nonce (transaction count)
fee
The fee to use for the transaction