Open ghost opened 1 year ago
What did you use for "address" and "payload"?
address
was my currently connected Keplr account address for CosmosHub. payload
was "hello there"
. However, my point is that the SignDoc
returned by makeADR36AminoSignDoc
has no chainId
, so afaict this will never work.
I have also had the same issue with this.
An Adr-36 SignDoc has chain set to ""
in it's internal payload, so you'd have to sign
await window.keplr.signArbitrary(
"",
address,
payload
);
to prevent the mismatch
This will most likely still produce different signatures from the keplr signArbitrary
function though, because the internal serialization of signArbitrary
within serializeSignDoc
also sorts the json by keys, something which you don't get/do when just calling makeADR36AminoSignDoc
Describe the bug
I want to be able to use the
signAmino
method exposed by the Keplr extension to sign ADR36 objects. Ideally this code "just works",But it throws the error Unmatched chain id with the offline signer. Unfortunately, I have to do
Device details (please complete the following information):