I am looking to know how we will be able to signal unsigned transaction in hex layout.
We use TrustWalletCore, I obtain an unsigned tx in hex layout, then we decode it to knowledge with
let dataToSign = Information(hex: unsignedTxHex)
then signal it with pockets core means:
`coinPrivateKey`.signal(digest: dataToSign, curve: .secp256k1)
and I attempted:
`coinPrivateKey`.signAsDER(digest: dataToSign)
then covert it to hex
once more:
let signedStr = signedData?.toHexString()
And I attempted to decode it the use of this carrier
And obtain error:
"error": "Can not learn slice out of bounds"
How I will unravel this drawback? Thank you so much in your feedback and solutions