Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: don't sort witnesses prior to check, fix #2301 #2302

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

roman-khimov
Copy link
Member

8537700 was a bit wrong in its witness
treatment, contract-based verification scripts have zero length and this
script has a hash different from the target script hash to check, so sorting
can break witnesses in some cases.

8537700 was a bit wrong in its witness
treatment, contract-based verification scripts have zero length and this
script has a hash different from the target script hash to check, so sorting
can break witnesses in some cases.
@roman-khimov roman-khimov merged commit 673ea0d into master-2.x Dec 7, 2021
@roman-khimov roman-khimov deleted the dont-sort-witnesses branch December 7, 2021 09:12
@fabwa
Copy link
Contributor

fabwa commented Dec 7, 2021

Have you tested whether the tx from the issue passes the VM now?

@roman-khimov
Copy link
Member Author

I guess we need to say hi to neo-project/neo#938 again.

roman-khimov added a commit that referenced this pull request Dec 7, 2021
A follow-up to #2302, sort hashes using reverse order. Fixes
f9c68613f41ca85ddb01ec757153c0d86018d2324f6ff85a4afc708bb598b722 validation.

Hi, neo-project/neo#938.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants