I am building dApps on cardano, and I faced an issue.
I was trying to let the users sign message to verify them. (using signData
method of wallet)
But signData
method is not supported for ledger type wallet yet.
So I try to fix this using signTx
method which is supported both for ledger and seed-phrase account.
And I got the signedTx
(hex string) and the transaction string
and
build the signedData like this.
const signedData = {
signature: transaction string,
key: signed transaction
}
And I tried to verify this in the same way I verify the signed message using
@emurgo/cardano-message-signing-nodejs
@emurgo/cardano-serialization-lib-nodejs
But I got error like this.
Deserialization failed in TransactionWitnessSet because: Invalid cbor: not the right type, expected Map' byte received Array'.
Can anyone help me with this issue?
Thank you very much.