neoneo-go/pkg/vm
Roman Khimov 1bf232ad50 vm: introduce TryBool() for Element and use it in VerifyWitnesses
Script can return non-bool results that can still be converted to bool
according to the usual VM rules. Unfortunately Bool() panics if this
conversion fails which is OK for things done in vm.execute(), but certainly
not for VerifyWitnesses(), thus there is a need for TryBool() that will just
return an error in this case.
2019-10-04 16:13:39 +03:00
..
cli vm/cli: add some convenience heuristic to ease 'run' use 2019-09-10 23:31:06 +03:00
compiler compiler: update and move README to the docs folder 2019-09-17 19:09:02 +03:00
tests vm: extend interops to contain price 2019-10-04 16:13:39 +03:00
context.go vm: protect PUSHDATA from short reads 2019-09-11 12:35:37 +03:00
emit.go vm: switch from Opcode to Instruction 2019-08-14 15:40:31 +03:00
emit_test.go vm: switch from Opcode to Instruction 2019-08-14 15:40:31 +03:00
instruction_string.go vm: expand instruction list with commands from current VM spec 2019-09-08 20:46:35 +03:00
instructions.go vm: expand instruction list with commands from current VM spec 2019-09-08 20:46:35 +03:00
interop.go vm: add Value() method to Element 2019-10-04 16:13:39 +03:00
output.go Optimizations + some improvements (#105) 2018-11-26 16:56:45 +01:00
stack.go vm: introduce TryBool() for Element and use it in VerifyWitnesses 2019-10-04 16:13:39 +03:00
stack_item.go vm: accept uint32 in makeStackItem() 2019-10-04 16:13:39 +03:00
stack_test.go vm: add CHECKSIG/VERIFY/CHECKMULTISIG implementations 2019-09-24 13:01:54 +03:00
state.go *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
state_test.go Code refactoring (#143) 2019-02-19 14:22:33 +01:00
vm.go vm: add Value() method to Element 2019-10-04 16:13:39 +03:00
vm_test.go vm: extend interops to contain price 2019-10-04 16:13:39 +03:00