Open mmalmi opened 2 years ago
New gun version doesn't accept json signed by old gun versions.
This works in old (pre-manhattan) gun versions, but not on the latest:
await SEA.verify('SEA{"m":{"b":"b","a":"a"},"s":"lLj1EcJUGgCWKuw2tDLY2Uq9UHWxHqhEtn0eEqHhYC6z7kRj13KkFdjbHV4NNyiAYm6XezUl6phbXzssaoHKEA=="}', '1LgnhjM1H1eciNRO7ovT5RCogaAcbpLYF526bEC6RRU.mxCo7QMypmLfGUC0SsdKbf4f_y4bNNKbKdqudnyB6lw')
With alphabetically ordered fields it works just fine:
await SEA.verify('SEA{"m":{"a":"a","b":"b"},"s":"Go1rUggsglOFC3RmUFYCrTSkDrJIat3VR99nj5TUFLtiiZ2B3aAUxFsdPCln7rbCP278EAzFOCfW1rWvl6Vq4Q=="}', '1LgnhjM1H1eciNRO7ovT5RCogaAcbpLYF526bEC6RRU.mxCo7QMypmLfGUC0SsdKbf4f_y4bNNKbKdqudnyB6lw')
What's the best way to accept old format messages?
Odd, I'm pretty sure sorted JSON predated Manhattan. Hmm. I'm not sure, thoughts?
The old version is 0.2020.1232
0.2020.1232
https://github.com/mmalmi/gun/blob/old/package.json
New gun version doesn't accept json signed by old gun versions.
This works in old (pre-manhattan) gun versions, but not on the latest:
With alphabetically ordered fields it works just fine:
What's the best way to accept old format messages?