We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7c031 commit f894632Copy full SHA for f894632
bitcoin/core/scripteval.py
@@ -23,6 +23,7 @@
23
import bitcoin.core._bignum
24
import bitcoin.core.key
25
import bitcoin.core.serialize
26
+from bitcoin.core.contrib.ripemd160 import ripemd160
27
28
# Importing everything for simplicity; note that we use __all__ at the end so
29
# we're not exporting the whole contents of the script module.
@@ -624,9 +625,7 @@ def check_args(n):
624
625
elif sop == OP_RIPEMD160:
626
check_args(1)
627
- h = hashlib.new('ripemd160')
628
- h.update(stack.pop())
629
- stack.append(h.digest())
+ stack.append(ripemd160(stack.pop()))
630
631
elif sop == OP_ROT:
632
check_args(3)
0 commit comments