Currently the adapter has a signMessageV2 function which is taking only string input, we want it to accept binary data - since we want to sign binary data.
If we use window.tronWeb.trx.signMessageV2(new Uint8Array([1])) it throws an error Failed to sign transaction by v2: Invalid transaction provided .
If we pass the input in hex format it just signs the data as is rather than signing the binary decoded data.
Could you please recommend what to do in this case?
Thanks.