MCPcopy
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
229def 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
238def op_return(stack):

Callers 5

evaluateMethod · 0.90
op_equalverifyFunction · 0.70
op_numequalverifyFunction · 0.70
op_checksigverifyFunction · 0.70
op_checkmultisigverifyFunction · 0.70

Calls 1

decode_numFunction · 0.70

Tested by

no test coverage detected