bip158: change swp to rev in +to-range

Co-authored-by: fang <github@fang.io>
This commit is contained in:
tinnus-napbus 2021-06-24 05:01:32 +12:00 committed by GitHub
parent 84ca32aa80
commit 9112368ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@
++ to-range ++ to-range
|= [item=byts f=@ k=byts] |= [item=byts f=@ k=byts]
^- @ ^- @
(rsh [0 64] (mul f +:(flim:sha (siphash k item)))) (rsh [0 64] (mul f (rev 3 (siphash k item))))
:: +set-construct: return sorted hashes of scriptpubkeys :: +set-construct: return sorted hashes of scriptpubkeys
:: ::
++ set-construct ++ set-construct