Diff is a module to compute the difference (XOR) of two byte vectors. Allow to check if a result is correct.
Argument name | Optional/mandatory | Description | Values/Examples |
type | mandatory | | type = "diff" |
input_name1 | optional | the name of the first input variable | input_name1 = "plain1" |
input_name2 | optional | the name of the second input variable | input_name2 = "plain2" |
output_name | optional | the name of the output variable | output_name = "plains_diff" |
Command | Input name | Input type | Output name | Output type | Specific attributes |
diff | "input1" or input_name1 and "input2" or input_name2 | u8 vectors (SHOULD CHANGE IN THEĀ FUTURE) | output_name or "output" | u8 vector | "not_zero" produces an output only if diff result is not zero |
[modules]
[modules.diff_ciphers]
type = "diff"
[actors]
diff_ciphers = ["diff_ciphers", "diff", "not_zero"]