From 1c9da4ee7a9ca1f5cc2333cb4ae854e3307ad61e Mon Sep 17 00:00:00 2001 From: FilippoTrotter Date: Mon, 21 Oct 2024 09:19:10 +0200 Subject: [PATCH] add explanatory comment on BBS+ indexes error handling --- src/lua/crypto_bbs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/crypto_bbs.lua b/src/lua/crypto_bbs.lua index 976f18664..65e856417 100755 --- a/src/lua/crypto_bbs.lua +++ b/src/lua/crypto_bbs.lua @@ -647,7 +647,7 @@ local function core_proof_gen(ciphersuite, pk, signature, generators, header, ph local disclosed_messages = {} local undisclosed_messages = {} for i, v in ipairs(disclosed_indexes) do - if i > 1 and disclosed_indexes[i] == disclosed_indexes[i - 1] then + if i > 1 and disclosed_indexes[i] == disclosed_indexes[i - 1] then --Arrays are always sorted in proof_gen (line 684) before being passed as input to core_proof_gen error('disclosed indexes contains duplicates', 3) end table.insert(disclosed_messages, messages[v])