I'm trying to sign a message on the frontend - I'm using StarknetKit and Argent X as the wallet. Later, I'm trying to verify that message on the backend using the starknet library and ec.starkCurve.verify
After a lot of digging, it seems like Argent X returns an ArraySignatureType through signMessage, and that message can be verified on the frontend if I use connection.account.verifyMessage
But, I tried to convert the ArraySignatureType to a WeierstraussSignatureType by treating the item at index 0 as r and index 1 as s but it fails to verify when I do that
Docs are basically non-existent on this topic, so can anyone here help point me in the right direction on what I'm doing wrong?
Hey,
I'm trying to sign a message on the frontend - I'm using StarknetKit and Argent X as the wallet. Later, I'm trying to verify that message on the backend using the
starknet
library andec.starkCurve.verify
After a lot of digging, it seems like Argent X returns an
ArraySignatureType
throughsignMessage
, and that message can be verified on the frontend if I useconnection.account.verifyMessage
But, I tried to convert the
ArraySignatureType
to aWeierstraussSignatureType
by treating the item at index 0 asr
and index 1 ass
but it fails to verify when I do thatDocs are basically non-existent on this topic, so can anyone here help point me in the right direction on what I'm doing wrong?