zkas, vm: Implement greater_than opcode for scalar comparison.

This commit is contained in:
parazyd
2022-03-24 19:02:13 +01:00
parent 73d7b4f19b
commit 3447c87dd8
6 changed files with 79 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ local type = token(l.TYPE, word_match{
local instruction = token('instruction', word_match{
'ec_add', 'ec_mul', 'ec_mul_base', 'ec_mul_short',
'ec_get_x', 'ec_get_y',
'base_add', 'base_mul', 'base_sub',
'base_add', 'base_mul', 'base_sub', 'greater_than',
'poseidon_hash', 'calculate_merkle_root',
'constrain_instance',
})

View File

@@ -19,7 +19,7 @@ syn keyword zkasType
syn keyword zkasInstruction
\ ec_add ec_mul ec_mul_base ec_mul_short
\ ec_get_x ec_get_y
\ base_add base_mul base_sub
\ base_add base_mul base_sub greater_than
\ poseidon_hash calculate_merkle_root
\ constrain_instance