diff --git a/include/aeb_opcodes.hrl b/include/aeb_opcodes.hrl index 0e7d0e0..fea855c 100644 --- a/include/aeb_opcodes.hrl +++ b/include/aeb_opcodes.hrl @@ -179,3 +179,5 @@ -define(PRIM_CALL_MAP_SIZE, 304). -define(PRIM_CALL_MAP_TOLIST, 305). +-define(PRIM_CALL_IN_CRYPTO_RANGE(__TTYPE__), (((__TTYPE__) > 399) andalso ((__TTYPE__) < 500))). +-define(PRIM_CALL_CRYPTO_ECVERIFY, 400). diff --git a/src/aeb_primops.erl b/src/aeb_primops.erl index b7aaeaf..abf1093 100644 --- a/src/aeb_primops.erl +++ b/src/aeb_primops.erl @@ -14,8 +14,9 @@ -include("aeb_opcodes.hrl"). -is_local_primop_op(Op) when ?PRIM_CALL_IN_MAP_RANGE(Op) -> true; -is_local_primop_op(Op) when is_integer(Op) -> false. +is_local_primop_op(Op) when ?PRIM_CALL_IN_MAP_RANGE(Op) -> true; +is_local_primop_op(Op) when ?PRIM_CALL_IN_CRYPTO_RANGE(Op) -> true; +is_local_primop_op(Op) when is_integer(Op) -> false. op_needs_type_check(Op) -> (not is_local_primop_op(Op)) andalso op_has_dynamic_type(Op).