You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a transaction from a base58 encoded message using the Transaction.populate() function, the order of the accountKeys does not match the order of the accountKeys the original message. The account keys are all the same, but them being in a different order is causing issues.
This is leading to a signature verification failure, even though the two transactions technically have the same information in them.
I have created a repository that replicates this issue, and includes JSON outputs of the message before and after being passed in to the Transaction.populate() method.
Figure out how to have the Transaction.populate() function return a message that has the accountKeys in the same order as the message it is constructed from.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
Problem
When creating a transaction from a base58 encoded message using the
Transaction.populate()
function, the order of theaccountKeys
does not match the order of theaccountKeys
the original message. The account keys are all the same, but them being in a different order is causing issues.This is leading to a signature verification failure, even though the two transactions technically have the same information in them.
I have created a repository that replicates this issue, and includes JSON outputs of the message before and after being passed in to the
Transaction.populate()
method.The repo can be found here.
Proposed Solution
Figure out how to have the
Transaction.populate()
function return a message that has theaccountKeys
in the same order as the message it is constructed from.The text was updated successfully, but these errors were encountered: