Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jimmysong/programmingbitcoin
/ op_verify
Function
op_verify
code-ch08/op.py:229–235 ·
view source on GitHub ↗
(stack)
Source
from the content-addressed store, hash-verified
227
228
229
def
op_verify(stack):
230
if
len(stack) < 1:
231
return
False
232
element = stack.pop()
233
if
decode_num(element) == 0:
234
return
False
235
return
True
236
237
238
def
op_return(stack):
Callers
5
evaluate
Method · 0.90
op_equalverify
Function · 0.70
op_numequalverify
Function · 0.70
op_checksigverify
Function · 0.70
op_checkmultisigverify
Function · 0.70
Calls
1
decode_num
Function · 0.70
Tested by
no test coverage detected